2

I've been building a very thorough script to handle the process of fresh-installing Ubuntu and setting it up just the way I like (as well as adapting it for use at where I work). It's a bash script I run right after install.

One of the last remaining things I haven't figured out how to do with something like gsettings is to control what icons get locked to the launcher. I would like to remove almost all the default icons and only lock icons of my choosing instead.

Any ideas?

Running 14.04.2, pure Ubuntu (not a variant).

1
  • Th link includes both an example script and the explanation on the gsettings key. Jun 26, 2015 at 6:12

1 Answer 1

4

The key is favorites in com.canonical.Unity.Launcher:

$ gsettings get com.canonical.Unity.Launcher favorites
['application://google-chrome.desktop', 'application://nautilus-home.desktop', 'unity://running-apps', 'application://evolution.desktop', 'unity://expo-icon', 'unity://devices']

You can set the values using gsettings set. For example:

gsettings set com.canonical.Unity.Launcher favorites "['application://firefox.desktop', 'unity://running-apps', 'application://evolution.desktop', 'unity://devices']"

Examine the .desktop files in /usr/share/applications to determine the correct .desktop files for the applications you want to add.

1
  • 1
    Awesome! This is precisely what I was looking for. Thank you for providing such a quick and clear explanation!
    – Harsha K
    Jun 26, 2015 at 0:18

Not the answer you're looking for? Browse other questions tagged .