I don’t use VLC that much to have it there, so I would like to remove it from the sound menu in the top right. I found a small image to show what it looks like (the sound menu is open and shows VLC along with other music players).
Sorry for giving a very low resolution image.
To disable VLC in sound menu, follow the steps:
Move VLC DBus plugin
Open
dconf-editor
, Removevlc.desktop
from:Or just reset it through terminal
Note: Someones may like to Modify sound indicator menu to hide controls from inactive player or remove it after closeing. In other words, Running players have full controls, Closed ones either only launcher (no control buttons) or disappear totally from menu.
How to remove VLC from the sound menu / How to prevent VLC from reappearing in the sound menu.
Removing VLC from the sound menu
GUI method
com/canonical/indicator/sound
interested-media-players
) items, remove the application(s) you do not need / want to appear in the menu. Close the dconf-editor.Command line method
To read the current menu items:
gives an output like:
To remove VLC, remove
vlc.desktop
from the list and set the changed menu by the command:Preventing VLC from returning in the sound menu (14.04)
The solution removes VLC from the sound menu, but if you start VLC, it will appear again in the sound menu. The script below does not prevent that, but immediately and automatically removes it once VLC is closed.
To use it:
Copy the script below, paste it in an empty textfile and save it as
vlc
, make it executable. Then copy thevlc.desktop
file from/usr/share/applications
to~/.local/share/applications
and replace the (first) line starting withExec=
byExec=/path/to/script/vlc
. Log out and back in. The desktopfile will be redirected to the script, the script will start VLC and wait for it to stop and remove VLC from the soundmenu immediately.Other applications
This method / script can also be used for other applications in the sound menu. Two lines in the last section of the script need to be altered then, according to the other application:
and
Show user defined applications in the soundmenu only if they run
The solution below is flexibly usable for mutiple applications at once with a position in the sound menu. User can define (and change) which applications have a permanent position in the menu, and which ones should be removed from the sound menu after they are closed.
What it is and what it does
The solution exists of a script that runs from startup (login). It allows user defined applications to appear in the sound menu, but removes those applications from the soundmenu after they close.
The script has no effect on the functionality of the desktop files. I could not notice any effect on the processor load, memory usage is negligible.
how to use
Copy the script below into an empty file, save it as
cleanup_soundmenu.py
In the line starting with
no_show =
, applications are set which should be cleaned up from the menu after they are closed. Two examples are set:['rhythmbox', 'vlc']
. The names are derrived from their desktop files, stripped from.desktop
.In the line, starting with
cleanup_interval
, user can define the interval between the clean up checks. By default it is 10 seconds.Add the following line to
Startup Applications
(Dash > Startup Applications > Add):On next login, defined application will be cleaned from sound menu if they are not running.
The script
Ubuntu 14.04 simple solution (only one command, no sudo, no script).
Open Terminal application, then copy, paste and execute one of the following command. After that the sound indicator will be automatically cleaned out after VLC exits.
don't leave any entry within the sound indicator:
leave Rhythmbox entry within the sound indicator:
undo changes:
This an article about how to add this feature do the opposite scenario: