Add and remove launcher icons from command line
Solution 1:
-
To view the current ones:
gsettings get com.canonical.Unity.Launcher favorites
would output something like:
['nautilus-home.desktop', 'chromium-browser.desktop', 'gnome-system-monitor.desktop']
-
To add new entry, say
vlc
, add its .desktop file ie.vlc.desktop
as:gsettings set com.canonical.Unity.Launcher favorites "['nautilus-home.desktop', 'chromium-browser.desktop', 'gnome-system-monitor.desktop', 'vlc.desktop']"
(those included in the value string "[... ... ...]" will be show up in the launcher. You can use this to add or remove the launchers of your choice.)
-
To reset to the default values:
gsettings reset com.canonical.Unity.Launcher favorites