MarshallOfSound / Google-Play-Music-Desktop-Player-UNOFFICIAL-

A beautiful cross platform Desktop Player for Google Play Music
https://www.googleplaymusicdesktopplayer.com
MIT License
8.27k stars 767 forks source link

Hide Dock Icon in MacOS #3631

Open wfaulk opened 4 years ago

wfaulk commented 4 years ago

Checklist:

OS: MacOS X 10.13.6

GPMDP Version: 4.6.1

Issue Descriptions: It would be nice if there were an option to get rid of the Dock icon and only have the menulet interface.

Steps to Reproduce: n/a

welcome[bot] commented 4 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of duplicate issues on this repo, so please double check now that your issue has not already been solved or doesn't have an open issue already. To help make it easier for us to investigate your issue, please follow the contributing guidelines and ensure the issue template was filled out.

wfaulk commented 4 years ago

I was able to edit Info.plist manually and add this item:

    <key>LSUIElement</key>
    <true/>

and that prevents it from ever showing the Dock icon, and it seems to work fine that way. (Actually, I think it's preventing it from displaying song notifications. Also, this change seems to make the start-on-login feature think that the app is a command line application, and tries to open a terminal at login to start the app instead of just doing a normal application start.)

But it would be nice if there were a toggleable option in the app.

I do see that there is a "Minimize to Tray" option in the preferences, but I can't figure out what it does. It certainly doesn't prevent the Dock icon from showing, regardless of whether I close the main window or minimize it.