gluon: fix error making paths on linux
This commit is contained in:
parent
36ef5b7c66
commit
9c8d99d10d
@ -15,15 +15,15 @@ const __dirname = dirname(__filename);
|
|||||||
|
|
||||||
const browserPaths = ({
|
const browserPaths = ({
|
||||||
win32: {
|
win32: {
|
||||||
chrome_stable: join(process.env.PROGRAMFILES, 'Google', 'Chrome', 'Application', 'chrome.exe'),
|
chrome_stable: join(process.env.PROGRAMFILES ?? '', 'Google', 'Chrome', 'Application', 'chrome.exe'),
|
||||||
chrome_canary: join(process.env.LOCALAPPDATA, 'Google', 'Chrome SxS', 'Application', 'chrome.exe'),
|
chrome_canary: join(process.env.LOCALAPPDATA ?? '', 'Google', 'Chrome SxS', 'Application', 'chrome.exe'),
|
||||||
edge: join(process.env['PROGRAMFILES(x86)'], 'Microsoft', 'Edge', 'Application', 'msedge.exe'),
|
edge: join(process.env['PROGRAMFILES(x86)'] ?? '', 'Microsoft', 'Edge', 'Application', 'msedge.exe'),
|
||||||
|
|
||||||
firefox: join(process.env.PROGRAMFILES, 'Mozilla Firefox', 'firefox.exe'),
|
firefox: join(process.env.PROGRAMFILES ?? '', 'Mozilla Firefox', 'firefox.exe'),
|
||||||
firefox_nightly: join(process.env.PROGRAMFILES, 'Firefox Nightly', 'firefox.exe'),
|
firefox_nightly: join(process.env.PROGRAMFILES ?? '', 'Firefox Nightly', 'firefox.exe'),
|
||||||
},
|
},
|
||||||
|
|
||||||
linux: {
|
linux: { // these should be in path so just use the name of the binary
|
||||||
chromium: 'chromium',
|
chromium: 'chromium',
|
||||||
firefox: 'firefox',
|
firefox: 'firefox',
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user