App icon is visible on the dock, no option to hide it
Describe the bug OnlySwitch app icon is visible on the dock.
To Reproduce N.A.
Expected behavior OnlySwitch app icons should not be on the dock.
Desktop (please complete the following information):
- OS: Sequioa 15.0
- Version 2.5.4
Additional context
- Try and removing and reinstalling
- Tried shut down and restart
Having the same issue, especially after a restart.
Have to quit and start the app again to remove the icon from the dock.
I'm facing the same issue, especially after a restart. In order to remove it from the dock, I quit and open the app again. This behavior has started since the latest update - V2.5.4.
I found a way to fix this.
- Find the app on your Finder.
- Right click and "Show Package Contents"
- Find
Info.plist - Open it (backup the file in case anytg goes wrong)
- Find
<key>LSUIElement</key> - On the next line, change
<false/>to<true/> - Save the file
- Quit Only Switch
- Re-open it and the icon should not be in the dock
@jacklandrin not sure where to edit this in the project file as I'm not a MacOS dev so I cant make a PR, but hope you can update this!
@alfianridwan Thanks for your solution.
However, the requirement is that the app icon will display in the dock only when settings is open. If setting LSUIElement to true, it will cause app icon always is hidden.
So far I am using NSApp.setActivationPolicy() to control if show the icon on dock. Somehow, there are some problems with it in the new macOS version when app launches.
@alfianridwan @binaryblitz10 @FrancisMorelli After investigating, seems it's a system bug from Apple. I found some developers also facing same issue. https://github.com/buresdv/Cork/issues/408 I'll engage the same workaround to fix it in the next version.
@alfianridwan fixed in the version 2.5.5