ankurk91 / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
162 stars 49 forks source link

[mac] Toggle dock icon on macos #72

Closed willbutler closed 2 years ago

willbutler commented 2 years ago

I've seen requests to turn off the menubar icon on the Mac, but would it possible to allow the app to run with only the menubar icon when in the background? There are some other apps that run in the background that do this when you close the main window. Thanks!

ankurk91 commented 2 years ago

Does electron support this ?

willbutler commented 2 years ago

Similar support was added to the Electron-based Signal desktop app: https://github.com/signalapp/Signal-Desktop/issues/2210.

ankurk91 commented 2 years ago

Your issue title is different from your issue description, and the issue that you linked is saying something else.

This app already closes to tray when you close the window.

There is an option to start app in tray as well.

Feel free to reopen.

willbutler commented 2 years ago

@ankurk91 Sorry for the confusion! The request was to be able to disable the dock icon completely. In other words, it would be great to just have the icon in the menu bar without it taking up a spot in the dock.

ankurk91 commented 2 years ago

The issue you have linked, it not related to hiding the dock icon, is it?

They added tray icon support and we have it already.

What they did in order to hide the app icon from dock?

willbutler commented 2 years ago

Hmm. I think this PR better captures what I'm referring to: https://github.com/signalapp/Signal-Desktop/pull/3335.

eazyAlf commented 2 years ago

Hi there, this is actually what I have asked for before – to be able to hide it from the dock or from the active applications when switching between apps/windows (cmd + tab)

https://github.com/ankurk91/google-chat-electron/issues/44

i changed this in plist with plistbuddy: /usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/google-chat-electron.app/Contents/Info.plist

only annoying thing is that it resets after every update and the menu bar isn't accessible anymore

Hmm. I think this PR better captures what I'm referring to: signalapp/Signal-Desktop#3335.

@ankurk91 is this complicated to integrate?