New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to hide dock icon immediately #1456

Closed
leo opened this Issue Apr 11, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@leo
Copy link

leo commented Apr 11, 2017

Electron has a native method that allows you to hide the dock icon, but it will pop up at the startup anyway and only hide later. In turn, electron-builder should support this.

@leo leo changed the title Add ability to hide dock icon Add ability to hide dock icon immediately Apr 11, 2017

@develar

This comment has been minimized.

Copy link
Member

develar commented Apr 12, 2017

Please use https://github.com/electron-userland/electron-builder/wiki/Options#MacOptions-extendInfo to add any custom Info.plist entries.
e.g. set

"mac": {
  "extendInfo": {
    "LSUIElement": 1
  }
}
@leo

This comment has been minimized.

Copy link
Author

leo commented Apr 14, 2017

Sweet, thanks!

JamesCropcho added a commit to plotly/orca that referenced this issue Apr 12, 2018

"To hide the electron icon from the dock on OS X it is recommended (e…
…lectron-userland/electron-builder#1456) to add "extendInfo": {"LSUIElement": 1} to the top-level mac configuration settings"

JamesCropcho added a commit to plotly/orca that referenced this issue Apr 14, 2018

"To hide the electron icon from the dock on OS X it is recommended (e…
…lectron-userland/electron-builder#1456) to add "extendInfo": {"LSUIElement": 1} to the top-level mac configuration settings"

etpinard added a commit to plotly/orca that referenced this issue Apr 16, 2018

Just changes in `/src` from branch forbid-popup-windows (#72)
* #65 (comment)

* "Probably best to set show: opts.debug for debugging purposes."

* "shall we add show: false to the server too?"

* "there's a few more createBrowserWindow calls" "Moreover, here too we should set show: opts.debug."

* `remote.createBrowserWindow`'s `show` parameter appears to treat `undefined` as true. This commit performs like casting to a Boolean.

* "On Windows and Linux, setting this to true should keep the electron window from displaying in the taskbar, which I believe to be desirable for making image export a seamless experience for Windows and Linux Python/R users. I think this change would just involve adding the skipTaskbar option everywhere the show option is added."

* "To hide the electron icon from the dock on OS X it is recommended (electron-userland/electron-builder#1456) to add "extendInfo": {"LSUIElement": 1} to the top-level mac configuration settings"

* Manual reverting of changes in package.json from previous commits on `forbid-popup-windows`

etpinard added a commit to plotly/orca that referenced this issue Jul 30, 2018

hide electron icon from osx dock
To hide the electron icon from the dock on OS X,
it is recommended (electron-userland/electron-builder#1456)
to add "extendInfo": {"LSUIElement": 1}
to the top-level mac configuration settings.

mantou132 referenced this issue in mantou132/GoogleTranslate Sep 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment