mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
support xdg environment vars (#46)
This commit is contained in:
parent
9c29ab373b
commit
80bb03de91
@ -70,6 +70,8 @@ export class Main {
|
|||||||
p = path.join(process.env.HOME, 'Library/Application Support/Bitwarden CLI');
|
p = path.join(process.env.HOME, 'Library/Application Support/Bitwarden CLI');
|
||||||
} else if (process.platform === 'win32') {
|
} else if (process.platform === 'win32') {
|
||||||
p = path.join(process.env.APPDATA, 'Bitwarden CLI');
|
p = path.join(process.env.APPDATA, 'Bitwarden CLI');
|
||||||
|
} else if (process.env.XDG_CONFIG_HOME) {
|
||||||
|
p = path.join(process.env.XDG_CONFIG_HOME, 'Bitwarden CLI');
|
||||||
} else {
|
} else {
|
||||||
p = path.join(process.env.HOME, '.config/Bitwarden CLI');
|
p = path.join(process.env.HOME, '.config/Bitwarden CLI');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user