mirror of https://github.com/keeweb/keeweb.git
fix #1530: running from directories with hash symbols
This commit is contained in:
parent
d7ee936b27
commit
9a8f1ad508
|
@ -1,6 +1,7 @@
|
||||||
const electron = require('electron');
|
const electron = require('electron');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
const url = require('url');
|
||||||
|
|
||||||
let perfTimestamps = global.perfTimestamps;
|
let perfTimestamps = global.perfTimestamps;
|
||||||
perfTimestamps.push({ name: 'loading app requires', ts: process.hrtime() });
|
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];
|
let openFile = process.argv.filter((arg) => /\.kdbx$/i.test(arg))[0];
|
||||||
|
|
||||||
const htmlPath =
|
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 =
|
const showDevToolsOnStart =
|
||||||
process.argv.some((arg) => arg.startsWith('--devtools')) ||
|
process.argv.some((arg) => arg.startsWith('--devtools')) ||
|
||||||
process.env.KEEWEB_OPEN_DEVTOOLS === '1';
|
process.env.KEEWEB_OPEN_DEVTOOLS === '1';
|
||||||
|
|
|
@ -2,6 +2,7 @@ Release notes
|
||||||
-------------
|
-------------
|
||||||
##### v1.15.2 (TBD)
|
##### v1.15.2 (TBD)
|
||||||
`-` fix #1530: recursive creation of the portable directory
|
`-` fix #1530: recursive creation of the portable directory
|
||||||
|
`-` fix #1530: running from directories with hash symbols
|
||||||
|
|
||||||
##### v1.15.1 (2020-06-07)
|
##### v1.15.1 (2020-06-07)
|
||||||
`-` fix #1528: OTP generation for stored values
|
`-` fix #1528: OTP generation for stored values
|
||||||
|
|
Loading…
Reference in New Issue