mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-20 02:03:21 +00:00
storage dir adjustments
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user