maltejur / discord-screenaudio

A custom discord client that supports streaming with audio on Linux.
1.09k stars 35 forks source link

Close to system tray doesnt work #113

Open GamzeeRakoon opened 1 year ago

GamzeeRakoon commented 1 year ago

Hello,

I tried to use the close to system-tray feature that's now being offered, except this feature isn't working for me. When i enable to the feature and close the application it will not be closed to the system tray and instead will be fully closed.

Reproduce:

Flatpak Version: 1.0.7 OS: VanillaOS 22.10 DE: Gnome 43

Video of issue:

https://user-images.githubusercontent.com/41258148/221428164-01292d53-7241-41bc-9532-e69f36f0e510.mp4

maltejur commented 1 year ago

Interesting, I thought Gnome doesn't have a system tray. Also interesting behaviour that the system tray icon is there, but closes with the program. Can you check the following things:

GamzeeRakoon commented 1 year ago

Gnome by default does not offer a way to interact with an application that closes to the system tray but it does support the feature, thus you have to install an extension to show these system tray icons https://extensions.gnome.org/extension/615/appindicator-support/

ouzbirki commented 1 year ago

I'm having the same problem with Hyprland on Arch Linux. As its'a WM, there's no X button and I have a keybind to close the window. But instead of going to tray, app closes entirely. However if I click the icon on tray, it minimizes itself to tray successfully but that's not the expected behaviour as using a WM relies on keybinds.

maltejur commented 1 year ago

@ouzdll I've added code on the master branch, which hides the application to the tray when Ctrl+Q is pressed. Would that solve your problem?

ouzbirki commented 1 year ago

@maltejur Yess, tried and it's working. Thanks ^^

maltejur commented 1 year ago

Great, and sorry for this happening a bit late :D

tobfos2611 commented 7 months ago

My Discord doesn't even run in the background, is this related to this, or should I open a new issue?