Skip to content

Commit

Permalink
Fix default startup directory
Browse files Browse the repository at this point in the history
  • Loading branch information
LabhanshAgrawal authored and Stanzilla committed Jan 27, 2020
1 parent 0c0482a commit 0d08691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ui/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fileUriToPath from 'file-uri-to-path';
import isDev from 'electron-is-dev';
import updater from '../updater';
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 notify from '../notify';
import fetchNotifications from '../notifications';
Expand Down Expand Up @@ -60,7 +60,7 @@ export function newWindow(
};

// set working directory
let workingDirectory = cfgDir;
let workingDirectory = homeDirectory;
if (process.argv[1] && isAbsolute(process.argv[1])) {
workingDirectory = process.argv[1];
} else if (cfg.workingDirectory && isAbsolute(cfg.workingDirectory)) {
Expand Down

0 comments on commit 0d08691

Please sign in to comment.