Skip to content

Commit

Permalink
Linux autostart start minimized (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorIA authored and lipis committed Jan 19, 2017
1 parent f255a89 commit b15055e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions electron/js/menu/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var menuTemplate;
const launcher = new autoLaunch({
name: config.NAME,
path: launchCmd,
isHidden: true,
});

function getBrowserWindow() {
Expand Down
2 changes: 1 addition & 1 deletion electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function showMainWindow() {
main.webContents.openDevTools();
}

if (!argv.startup) {
if (!argv.startup && !argv.hidden) {
if (!util.isInView(main)) {
main.center();
}
Expand Down

0 comments on commit b15055e

Please sign in to comment.