‘Exit On Close’ Plugin For Rhythmbox Music Player

Last updated: May 8, 2014

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.

rhythmbox-close-on-hide

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”.

Enjoy!

via:xpress-ubuntu

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

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