Skip to content

Commit

Permalink
fix: find scoop.ps1 on default installation
Browse files Browse the repository at this point in the history
  • Loading branch information
gitolicious committed Aug 27, 2023
1 parent bde343b commit 11db015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ let mainWindow;

let favoriteBucket;

const scoopBinary = `${process.env["SCOOP"]}\\apps\\scoop\\current\\bin\\scoop.ps1`;
const scoopDir = process.env["SCOOP"] || `${require('os').homedir()}\\scoop`
const scoopBinary = `${scoopDir}\\apps\\scoop\\current\\bin\\scoop.ps1`;

/////////////////
// main window //
Expand Down

0 comments on commit 11db015

Please sign in to comment.