‘Exit On Close’ Plugin For Rhythmbox Music Player

May 8, 2014 — 1 Comment

rhythmbox exit on close

Want to really exit Rhythmbox when clicking on the close button? Thanks to fossfreedom, he has written an external plugin that does just this – clicking the close button (window ‘x’ button) really does mean quit.


In the default way of working, Ubuntu has a specific patch to ensure that when music is playing, clicking the close button minimizes the application.

The reason for this is that some people like music to be playing, but they don’t actually want to see the application visibly on the desktop. Control of Rhythmbox then passes to the Sound Indicator.

However, for those that do not like this behavior, you cannot by default quit the application via the close button if something is playing. You have to either, stop what is playing and then quit. Alternatively, use the Menu – File – Quit method.

Install the Plugin:

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, follow the steps below:

1. Install git:

sudo apt-get install git

2. Navigate to Rhythmbox plugins directory:

cd ~/.local/share/rhythmbox/plugins

Create the directory if not exist and run the previous command again:

mkdir ~/.local/share/rhythmbox/plugins

3. Get the plugin:

git clone https://github.com/fossfreedom/close-on-hide

4. For Ubuntu 13.10 and earlier with Rhythmbox 2.99 or earlier, edit the plugin file via:

gedit ~/.local/share/rhythmbox/plugins/close-on-hide/close-on-hide.plugin

Change Loader=python3 to Loader=python and save the file.

5. Now open Rhythmbox, go to Tools -> Plugins and enable the line which says “Close on Hide”.



I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to ubuntuhandbook1@gmail.com

One response to ‘Exit On Close’ Plugin For Rhythmbox Music Player

  1. Hi,
    Actually, for some reason, on Ubuntu 14.04, Rhythmbox (3.0.2) will actually exit on x (close) button pressed, with no plugin present. How do I restore the old behaviour (I want it to ‘hide’ on close-button)?

Leave a Reply


Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>