Skip to content

Commit

Permalink
Add default for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
b-studios committed May 12, 2020
1 parent 57ebd94 commit 0c1eda7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export function activate(context: ExtensionContext) {

let folders = workspace.workspaceFolders || []

let defaultEffekt = platform() == 'win32' ? "effekt.cmd" : "effekt";
let defaultEffekt = "effekt";
let os = platform();

if (os == 'win32') { defaultEffekt = "effekt.cmd" }
else if (os == 'linux' || os == 'freebsd' || os == 'openbsd') { defaultEffekt = "effekt.sh" }

let effektCmd = config.get<string>("executable") || defaultEffekt

Expand Down

0 comments on commit 0c1eda7

Please sign in to comment.