mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
Fix default startup directory
This commit is contained in:
parent
0c0482a434
commit
0d08691565
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import fileUriToPath from 'file-uri-to-path';
|
||||||
import isDev from 'electron-is-dev';
|
import isDev from 'electron-is-dev';
|
||||||
import updater from '../updater';
|
import updater from '../updater';
|
||||||
import toElectronBackgroundColor from '../utils/to-electron-background-color';
|
import toElectronBackgroundColor from '../utils/to-electron-background-color';
|
||||||
import {icon, cfgDir} from '../config/paths';
|
import {icon, homeDirectory} from '../config/paths';
|
||||||
import createRPC from '../rpc';
|
import createRPC from '../rpc';
|
||||||
import notify from '../notify';
|
import notify from '../notify';
|
||||||
import fetchNotifications from '../notifications';
|
import fetchNotifications from '../notifications';
|
||||||
|
|
@ -60,7 +60,7 @@ export function newWindow(
|
||||||
};
|
};
|
||||||
|
|
||||||
// set working directory
|
// set working directory
|
||||||
let workingDirectory = cfgDir;
|
let workingDirectory = homeDirectory;
|
||||||
if (process.argv[1] && isAbsolute(process.argv[1])) {
|
if (process.argv[1] && isAbsolute(process.argv[1])) {
|
||||||
workingDirectory = process.argv[1];
|
workingDirectory = process.argv[1];
|
||||||
} else if (cfg.workingDirectory && isAbsolute(cfg.workingDirectory)) {
|
} else if (cfg.workingDirectory && isAbsolute(cfg.workingDirectory)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue