Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to pin an application in Unity launcher such that it can be seen for all users.

Currently, everything I changed seems to only affect the local user.

share|improve this question
add comment

1 Answer 1

To make appear applications pinned in launcher for newly created users you can change default settings schema by setting up a new override:

Create file /usr/share/glib-2.0/schemas/10_local-unity-launcher.gschema.override and insert the following code (.desktop files are stored under /usr/share/applications/):

[com.canonical.Unity.Launcher]
favorites=['pinned-application1.desktop', 'pinned-application2.desktop']

You have to insert all pinned applications. See /usr/share/glib-2.0/schemas/com.canonical.Unity.gschema.xml for default values by searching settings schema and key:

        <schema path="/desktop/unity/launcher/" id="com.canonical.Unity.Launcher" gettext-domain="unity">
    <key type="as" name="favorites">
      <default>DEFAULT_VALUES</default>

Then recompile schemas file /usr/share/glib-2.0/schemas/gschemas.compiled (which is used by gsettings):

sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.