From 183be70d44f11f8a1bdbc796cc9bcbcd73d6e8fc Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 4 May 2018 16:04:05 -0400 Subject: [PATCH] storage dir adjustments --- src/main.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index e24464bd..6cedc668 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,12 +27,10 @@ export class Main { constructor() { // Set paths for portable builds let appDataPath = null; - if (process.env.BITWARDEN_APPDATA_DIR != null) { - appDataPath = process.env.BITWARDEN_APPDATA_DIR; + if (process.env.BITWARDEN_CONNECTOR_APPDATA_DIR != null) { + appDataPath = process.env.BITWARDEN_CONNECTOR_APPDATA_DIR; } 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 = path.join(process.env.SNAP_USER_DATA, 'appdata'); + appDataPath = path.join(process.env.PORTABLE_EXECUTABLE_DIR, 'bitwarden-connector-appdata'); } if (appDataPath != null) {