SEARCH

How-To Geek

How to Remove Media Players From Ubuntu’s Sound Menu & Add Your Own

image

Ubuntu’s sound menu contains Rhythmbox by default. Any other media players you install will also appear in the menu, assuming they support the MPRIS2 specification. You can hide media players in the menu or add any application you like.

Media players you add won’t have integrated playback controls, but you can easily launch them from the sound menu. You can add any application’s shortcut to the sound menu, as long as the application has a desktop file.

Graphical Method

The easiest way to modify your sound menu is with graphically, with the dconf-editor application. It isn’t installed by default — search for dconf in Ubuntu’s Software Center to install it.

image

You can also do this with the gsettings terminal command included with Ubuntu — see the last section for instructions.

Launch dconf-editor from the Dash after installing it.

image

Navigate to the com/canonical/indicator/sound section in the dconf-editor window.

image

The interested-media-players setting contains a list of applications that will appear in the menu. The blacklisted-media-players setting can override the list of interested media players — blacklisted media players won’t appear in the menu, even if they’re in the list of interested media players.

For example, if you wanted to hide Rhythmbox from the menu, you could change the value of blacklisted-media-players to [‘rhythmbox’].

image

If you wanted to add VLC and Clementine to the sound menu, assuming they’re installed, you could change the value of interested-media-players to ['rhythmbox','vlc','clementine'].

image

A few quick notes:

  • Each value must contain the name of each application’s desktop file, not the application’s command itself. For example, vlc points to the vlc.desktop file that represents the application.
  • You can add any application with a .desktop file to the menu. Want to add your web browser to the list? Go ahead.

image

Your changes won’t appear until you log out and log back in.

image

Terminal Method

The gsettings get and gsettings set commands allow you to view and manage these settings from a terminal.

Use the gsettings get command to view one of the values:

gsettings get com.canonical.indicator.sound interested-media-players
gsettings get com.canonical.indicator.sound blacklisted-media-players

image

Use the gsettings set command to set the values. This command adds Rhythmbox to the blacklist, hiding it:

gsettings set com.canonical.indicator.sound blacklisted-media-players “[‘rhythmbox’]“

This command adds VLC and Amarok to the sound menu:

gsettings set com.canonical.indicator.sound interested-media-players “['rhythmbox', 'vlc', 'amarok']“

Remember to log out and log back in after running these commands.

Chris Hoffman is a technology writer and all-around computer geek. He's as at home using the Linux terminal as he is digging into the Windows registry. Connect with him on Google+.

  • Published 05/14/12

Comments (5)

  1. cam2644

    These articles about Ubuntu are much appreciated. What are your readers preferred Media Players?

  2. Adel

    It’s very hard for me to completely jump on Ubuntu or any Linux based system, I’m used to using windows. !

  3. cam2644

    Adel- If you can use Windows you can easily use Linux systems such as Ubuntu,Mint,Kubuntu etc. It really doesn’t take a lot and they are safer and generally faster.I switched over and have never missed Windows.

  4. Kevin James Lausen

    I believe the last command was suppose to be…

    $ gsettings set com.canonical.indicator.sound interested-media-players “['rhythmbox','vlc','amarok']”

    basically interested-media-players instead of blacklisted-media-players

    because within the context of the article, the writer said to set use interested, and to hide use bladlisted. Remembering blacklisted items will not show up even if they are in the(white-list)aka interested

    other than that minor correction very great article Chris Hoffman :D

  5. Chris Hoffman

    Oops, sorry, obvious mistake near the end there — I should have corrected this a while ago, sorry about that!

Enter Your Email Here to Get Access for Free:

Go check your email!