Skip to content
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 · 3 comments
Closed

Add ability to hide dock icon immediately #1456

leo opened this issue Apr 11, 2017 · 3 comments

Comments

@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
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
Copy link
Author

leo commented Apr 14, 2017

Sweet, thanks!

JamesCropcho added a commit to plotly/orca that referenced this issue Apr 12, 2018
…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
…lectron-userland/electron-builder#1456) to add "extendInfo": {"LSUIElement": 1} to the top-level mac configuration settings"
etpinard pushed a commit to plotly/orca that referenced this issue Apr 16, 2018
* #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 pushed a commit to plotly/orca that referenced this issue Jul 30, 2018
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
@sirbrillig
Copy link

Updated link for the extendInfo key: https://www.electron.build/configuration/mac.html#MacConfiguration-extendInfo

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

No branches or pull requests

3 participants