1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-06-26 10:36:19 +02:00

use SNAP_USER_DATA

This commit is contained in:
Kyle Spearrin 2018-02-23 17:11:18 -05:00
parent 2928e4cf3e
commit 6719d4d3f0

View File

@ -30,8 +30,10 @@ export class Main {
let appDataPath = null;
if (process.env.BITWARDEN_APPDATA_DIR != null) {
appDataPath = process.env.BITWARDEN_APPDATA_DIR;
} else if (process.env.PORTABLE_EXECUTABLE_DIR != null) {
} else if (process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null) {
appDataPath = path.join(process.env.PORTABLE_EXECUTABLE_DIR, 'bitwarden-appdata');
} else if (process.platform === 'linux' && process.env.SNAP_USER_DATA != null) {
appDataPath = process.env.SNAP_USER_DATA;
}
if (appDataPath != null) {