discord-screenaudio icon indicating copy to clipboard operation
discord-screenaudio copied to clipboard

Close to system tray doesnt work

Open GamzeeRakoon opened this issue 1 year ago • 7 comments

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:

  • install latest discord-screenaudio (1.0.7)
  • Login
  • enable close to system-tray
  • close window
  • doesn't exit to system-tray

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

GamzeeRakoon avatar Feb 26 '23 18:02 GamzeeRakoon

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:

  • Does toggling the setting switch fix the issue?
  • What are the contents of .var/app/de.shorsh.discord-screenaudio/config/<your username>/discord-screenaudio.conf?
  • Even if the tray icon is missing, is the process still running (in the task manager)?
  • Is background usage allowed for the flatpak? (You can check that with Flatseal, this is what it should look like)

maltejur avatar Feb 27 '23 19:02 maltejur

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/

  • Retoggling the setting does not fix the issue
  • if you mean by <your username> my computer user, that does not exist. it creates a folder called maltejur and in ther config contents are:
[General]
trayIcon=true
  • No the application is fully closed and nothing is running in the background
  • It was turned off but even after turning it on the same behaviour still happens. It closes completely when i click the exit button

GamzeeRakoon avatar Mar 02 '23 12:03 GamzeeRakoon

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.

ouzbirki avatar Jun 04 '23 00:06 ouzbirki

@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?

maltejur avatar Jun 23 '23 15:06 maltejur

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

ouzbirki avatar Jun 23 '23 16:06 ouzbirki

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

maltejur avatar Jun 23 '23 16:06 maltejur

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

tobfos2611 avatar Feb 05 '24 10:02 tobfos2611