-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3867c37
commit fbaa405
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
export const BRAVE_MACOS_PATH = '/Applications/Brave Browser.app/Contents/MacOS/Brave Browser' | ||
export const BRAVE_UBUNTU_PATH = '/usr/bin/brave-browser' | ||
export const BRAVE_LINUX_PATH = '/usr/bin/brave-browser' | ||
export const BRAVE_WINDOWS_PATH = | ||
'C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe' | ||
|
||
export function getLocalBravePath(): string { | ||
switch (process.platform) { | ||
case 'linux': | ||
return BRAVE_LINUX_PATH | ||
case 'win32': | ||
return BRAVE_WINDOWS_PATH | ||
default: | ||
return BRAVE_MACOS_PATH | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters