diff --git a/src/bw.ts b/src/bw.ts index 6825348723..2d2a9161dd 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -75,7 +75,7 @@ export class Main { constructor() { let p = null; - const relativeDataDir = path.join(process.execPath, 'bw-data'); + const relativeDataDir = path.join(path.dirname(process.execPath), 'bw-data'); if (fs.existsSync(relativeDataDir)) { p = relativeDataDir; } else if (process.env.BITWARDENCLI_APPDATA_DIR) {