Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
anonysoul committed Jan 29, 2024
1 parent 145790c commit 44aefa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/platform/linux.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Executor } from "../executor";
import { LinuxProxied, LinuxProxyConfig } from "./linux";

const needTest = process.platform === "linux";
const desktop = Executor.executeSync("echo $XDG_CURRENT_DESKTOP");
const needTest = process.platform === "linux" && desktop !== "";

test("desktop", () => {
if (!needTest) return;
Expand Down
2 changes: 1 addition & 1 deletion src/platform/linux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class LinuxProxied {
GNOMECommander.verifyConfig(config);
break;
default:
throw new Error("Unsupported desktop");
throw new Error(`Unsupported desktop:${this.desktopType}`);
}
}
}
Expand Down

0 comments on commit 44aefa4

Please sign in to comment.