fix #1530: running from directories with hash symbols

This commit is contained in:
antelle 2020-06-09 19:26:41 +02:00
parent d7ee936b27
commit 9a8f1ad508
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
const electron = require('electron');
const path = require('path');
const fs = require('fs');
const url = require('url');
let perfTimestamps = global.perfTimestamps;
perfTimestamps.push({ name: 'loading app requires', ts: process.hrtime() });
@ -36,7 +37,9 @@ setUserDataPaths();
let openFile = process.argv.filter((arg) => /\.kdbx$/i.test(arg))[0];
const htmlPath =
(isDev && process.env.KEEWEB_HTML_PATH) || 'file://' + path.join(__dirname, 'index.html');
(isDev && process.env.KEEWEB_HTML_PATH) ||
url.format({ protocol: 'file', slashes: true, pathname: path.join(__dirname, 'index.html') });
const showDevToolsOnStart =
process.argv.some((arg) => arg.startsWith('--devtools')) ||
process.env.KEEWEB_OPEN_DEVTOOLS === '1';

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.15.2 (TBD)
`-` fix #1530: recursive creation of the portable directory
`-` fix #1530: running from directories with hash symbols
##### v1.15.1 (2020-06-07)
`-` fix #1528: OTP generation for stored values