mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-20 10:13:23 +00:00
storage dir adjustments
This commit is contained in:
@@ -27,12 +27,10 @@ export class Main {
|
|||||||
constructor() {
|
constructor() {
|
||||||
// Set paths for portable builds
|
// Set paths for portable builds
|
||||||
let appDataPath = null;
|
let appDataPath = null;
|
||||||
if (process.env.BITWARDEN_APPDATA_DIR != null) {
|
if (process.env.BITWARDEN_CONNECTOR_APPDATA_DIR != null) {
|
||||||
appDataPath = process.env.BITWARDEN_APPDATA_DIR;
|
appDataPath = process.env.BITWARDEN_CONNECTOR_APPDATA_DIR;
|
||||||
} else if (process.platform === 'win32' && 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');
|
appDataPath = path.join(process.env.PORTABLE_EXECUTABLE_DIR, 'bitwarden-connector-appdata');
|
||||||
} else if (process.platform === 'linux' && process.env.SNAP_USER_DATA != null) {
|
|
||||||
appDataPath = path.join(process.env.SNAP_USER_DATA, 'appdata');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (appDataPath != null) {
|
if (appDataPath != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user