revolt icon indicating copy to clipboard operation
revolt copied to clipboard

Minimize to systray

Open realitygaps opened this issue 7 years ago • 6 comments

Would be nice to have the possibility to minimise the program to show only in the systray, currently it shows in systray and taskbar when minimised.

Also could be nice to have option that closing the program minimises to systray instead of exiting (some other programs do this).

realitygaps avatar Jan 16 '17 14:01 realitygaps

My first thought is that this shouldn't be too difficult, but I would like to make it into an option, and add two new check boxes to the settings dialog:

  • One for toggling the status icons.
  • Another one for toggling “close to tray” behavior. This should be only honoured if the status icon is enabled.

The idea is to prevent the situation in which the tray icon is not available, and the user would close the window but then there would be no way of bringing the window back. Also, we should probably have some code added that checks whether the status icon was successfully created, as instantiating it may fail in environments where status icons are not supported (e.g. Wayland).

aperezdc avatar Jan 16 '17 17:01 aperezdc

It would be cool that the application could somehow run in background, letting you receive notifications of chats even when you don't have a window around, and independently from the availability of tray icons.

jaragunde avatar Mar 29 '17 10:03 jaragunde

@jaragunde: You can just right click on the window title bar, and use “Minimize”. If you are using GNOME Shell the application icon will still appear in the Dash, and clicking it will bring back the window. The drawback if this approach is that the window will still appear in the window list when using Alt-Tab.

On the other hand, hiding the window will remove the application icon from the Dash: applications which are running but have no windows shown do not appear there — effectively preventing the user from knowing that the application is running on the background. “Relaunching” the application will activate the single instance (that's one of the reasons to use GtkApplication :wink:) and present the window with the instance of Riot already loaded because it was running in the background.

The TL;DR is: if there is no status icon anywhere, and we do not create an insidious persistent notification (of the kind that cannot be dismissed), then there is no way at all of telling whether an application is running. At least with the current GNOME design.

What I really liked from MacOS X was that applications which are loaded and running always have an icon in the Dock with an indicator below them, even when they have no windows being shown. For example, the Finder is always running in background (notice the dot below the happy face):

MacOS X Dock: Finder is always running, even when it may not have windows shown

In GNOME the story for applications which want to run in “background” with no windows being shown is terrible, and non-existent. Even when many of the needed moving parts are there (and GtkApplication is great, all applications should use it!), we are lacking a sanctioned way of letting providing an indication about which applications are running but not displaying windows to users :disappointed:

aperezdc avatar Mar 30 '17 16:03 aperezdc

Please, make the system tray minimize happen :) it would be nice! Thank you

childeofentropy avatar Nov 28 '19 13:11 childeofentropy

I think this is covered by #104 which was merged a few moments ago. Is there something else needed?

aperezdc avatar Feb 19 '20 12:02 aperezdc

Hello

#104 doesn't look support gnome shell. On close windows is hiden but any icon in tray bar

camlafit avatar Jun 13 '22 07:06 camlafit