After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 158168 - Rhythmbox should minimize to tray on Exit
Rhythmbox should minimize to tray on Exit
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
0.8.8
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 161952 165415 342049 526237 532313 (view as bug list)
Depends on: 330523
Blocks:
 
 
Reported: 2004-11-13 14:28 UTC by Loïc Minier
Modified: 2009-05-18 02:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Loïc Minier 2004-11-13 14:28:13 UTC
Usually, applications registered in the notification area system are not
shutdown when you press their window close button, but they simply disappear in
favor of the usage of their notification area icon.

Rhythmbox exits when you press the window close button, wether a notification
area is present or not.

I could not find any recommended behavior in the GNOME documentation, nor in the
freedesktop standards and drafts.

I think a nice way of handling this would be to implement different behaviors
for the close button when a notification area is present and when none is:
- shutdown rhythmbox (or hide the window and stop playback) when no notification
area is present,
- hide the window (but continue playback) when a notification area is present.

This is Debian bug http://bugs.debian.org/280924.
Comment 1 Christophe Fergeau 2004-11-13 14:46:07 UTC
> Usually, applications registered in the notification area system are not
shutdown when you press their window close button, but they simply disappear in
favor of the usage of their notification area icon.

This really depends on the app, muine also quits when you press the close
button. Imo muine's behaviour (quit when pressing the close button, display a
popup menu when you click on the tray icon, and put a "minimize to tray" menu
entry in this popup menu) is better.
Comment 2 Loïc Minier 2004-11-13 15:37:14 UTC
So I should use muine?   ;)

I think there should be an uniform behavior, and if users want apps to behave
non-uniformely, I think a configuration option is necessary, something like
"Close button docks Rhythmbox", or should this be on the minimize button?
Comment 3 Vincent Noel 2004-12-22 14:37:49 UTC
*** Bug 161952 has been marked as a duplicate of this bug. ***
Comment 4 Marc O'Morain 2005-01-14 02:43:21 UTC
IMO, The close button should close the application, as it does with every other
application. There must be a better way to make the minimize to the system-tray
than clicking the close button.

When you are finished using the application, and you just want to listen to
music, the icon in the system-tray is a little bit 'out of the way'.

Perhaps there should be a 'go to the system tray' button? I hate suggesting
things that would clutter the UI though. :/
Comment 5 Loïc Minier 2005-01-14 08:09:01 UTC
I think it should be consistent between apps.

I'm not sure this is the best place to discuss this though, should I bring that
to ddl?  Or where are such things best discussed for GNOME?

We might reach a consensus where some types of apps need to be shutdown, and
other not.  Or that some other behavior is to be implemented, such as clicking
on the notification area to minimize the app.
Comment 6 Yaron Tausky 2005-01-19 12:33:30 UTC
I agree with the reporter of the bug -- the more intuitive approach would be to
quit Rhythmbox by the notification area icon menu.
In this type of applications (resident ones), the GUI is seperated from "core"
-- the programme is expected to continue running even when its interface is closed.
Comment 7 Sebastien Bacher 2005-01-27 16:23:10 UTC
*** Bug 165415 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Fergeau 2005-01-27 16:27:10 UTC
Retitling bug, I found the title from bug #165415 clearer ;)
Comment 9 Sri Ramkrishna 2005-02-02 04:15:45 UTC
Christophe, 

Is this fixed in the mainline branch?  This should probably not be unconfirmed. :-)

sri
Comment 10 Christophe Fergeau 2005-02-02 09:13:28 UTC
It's not, since I don't think rb should do that ;) If something is fixed in
mainline wrt that, that will be bug #165713
Comment 11 Rob 2005-03-01 18:35:17 UTC
I agree with the reporter. Much like gaim, it's a background program. Maybe the
minimize-to-tray option could be enabled/disabled through a menu option rather
than being on or off all the time.
Comment 12 Christian Kirbach 2005-06-06 14:51:50 UTC
And I disagree :)

* Usually, an app quits when the window border close button is clicked. 
Consistency would be if _all_ applications follow this behaviour regardless of 
NA icons.

* In my opinion a left-click on the notification area icon should minimise the 
associated window (well, it actually does for RB, as it does for gaim by 
comparison). Hence there is no need to "abuse" the close window button IMHO.

Maybe a recommendation about that should be made in the Gnome HIG so that all 
apps can follow a consistent behaviour.
Comment 13 James "Doc" Livingston 2005-09-07 08:31:46 UTC
As an update, cvs now minimises to the tray when the close button is used.
However there is still considerable debate about whether this is good or bad, as
there are quite a few people (myself included) who would prefer that the close
button quits RB.
Comment 14 Loïc Minier 2005-09-07 08:52:03 UTC
I think of this issue every time I click the notification icon.

I must say I never click on the Close button, I type hit Alt-F4, and moving the
mouse to point precisely on the notification icon of RB is painful.

The immediate benefit I see with the change you mention in CVS is that I'll be
able to hit a familiar combination (Alt-F4) to minimize to notification area,
and another familiar one to quit (^Q).  FWIW, a new shortcut could also have
been introduced instead of changing the behavior of the window close operation.

The only other solution I see to the problem would be to add some kind of new
window button when the window can disappear in a new way, but that wouldn't
solve my "pointing with the mouse is painful" complaint.
Comment 15 Christophe Fergeau 2005-09-07 08:56:30 UTC
So you are saying it's logical to click on a close button when you want to
minimize the window, what about that "minimize" button then, should it close the
app? ;) (I guess the main reason for not overriding it is that it's probably not
easy to catch clicks on this button from rb).
Fwiw, a muine-like behaviour (a "minimize to tray" entry in the tray menu) (with
a new shortcut if people like it) sounds much better than the current mess to me
(though it could be worse, gaim and rb are more or less consistent in behaviour
atm, while muine behaves differently).

Comment 16 James "Doc" Livingston 2005-09-07 09:05:59 UTC
Currently the code somehow makes Alt-F4 not work, but that's just a bug.

In terms of clicking on window decoration, I'd agree with Christophe - if I
wanted to just hide the window I would have clicked the minimise button, rather
than the close one. CVS also has a new menu item "Close (Ctrl-W)" which closes
the window, without exiting.
Comment 17 Loïc Minier 2005-09-07 09:14:06 UTC
Heh!!  I never said I hit the close button, I said I never do!

My main concern is that I am able to minimize easily without bringing the
pointer to a small location, and that means a keyboard-shortcut to me.  I also
said I'm ok to make Alt-F4 minimize to NA, since we have ^Q to quit.

When I originally reported this, I was comparing Rhythmbox' behavior with
Gaim's, hence the suggestion to change the behavior of "close".

I do agree that the minimize button might be fine.
Comment 18 Christophe Fergeau 2005-09-07 09:15:07 UTC
« CVS also has a new menu item "Close (Ctrl-W)" which closes
the window, without exiting. »

Aaarg....
Why isn't it called "Hide main window" or something explicit ?
Comment 19 Steve Frécinaux 2005-09-10 19:51:02 UTC
The close button in the window decorations are relative to *windows* and not to
applications. It does not usually end applications when you click on it, unless
the window you close is the last one of the application, or if it is the main
window of the application.

This is the case when you don't use notification icons. But when a notification
icon is used, this icon become the main "window" of the app, since you
explicitly want rhythmbox to run as a background service by activating it.

Thus, when you close the playlist *window*, you mostly want it to be hidden and
to continue playing your music. That'll be possible to recall it by clicking on
the tray icon.
Comment 20 Michael 2005-10-21 09:50:27 UTC
I think that the close button should hide the window, and not close RhythmBox,
since this makes sense (to me at least!) for apps with notification icons. A
compromise however, could be to make the minimise button hide the window, the
idea being that the app is present in the notification area instead of the task bar.
Comment 21 James "Doc" Livingston 2006-02-14 03:54:08 UTC
This will be re-added as a plugin, once support for them lands (bug 330523).
Comment 22 James "Doc" Livingston 2006-03-20 10:31:05 UTC
There is a patch to add a plugin for this on bug 318629.

*** This bug has been marked as a duplicate of 318629 ***
Comment 23 MJ Talbot 2008-01-05 01:02:58 UTC
Does the plugin exists to choose the close behaviour ?
Comment 24 Matthew Paul Thomas (mpt) 2008-06-30 08:48:24 UTC
This is not a duplicate of bug 318629. This bug is asking for Rhythmbox's behavior to be changed, whereas bug 318629 is asking for a new option to be introduced.
Comment 25 Matthew Paul Thomas (mpt) 2008-06-30 08:48:24 UTC
*** Bug 532313 has been marked as a duplicate of this bug. ***
Comment 26 Matthew Paul Thomas (mpt) 2008-06-30 08:48:25 UTC
*** Bug 342049 has been marked as a duplicate of this bug. ***
Comment 27 Matthew Paul Thomas (mpt) 2008-06-30 08:49:32 UTC
*** Bug 526237 has been marked as a duplicate of this bug. ***
Comment 28 Emilio Pozuelo Monfort 2008-07-03 17:26:12 UTC
I agree with comment #13, This should be discussed in the HIG so that all the Desktop behaves equally IMHO
Comment 29 Lionel Dricot 2009-01-05 23:20:23 UTC
Emilio > The HIG is already clear about that : there's no such thing as "tray icon". This is a notification icon and should be used only temporarly to notify.

See bug #317982

So it makes no sense (according to the HIG) for RB to have a tray icon, let alone to hide in the tray when the user quits the application.
Comment 30 Jonathan Matthew 2009-05-18 02:30:20 UTC
this is done, no further correspondance will be entered into, have a nice day.