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.

Application's launcher icons can be removed using gconf-editor, but mounted drives appear on the launcher at all times (I auto-mount storage drives for my users).

In Unity 3D these can be removed by following these instructions, is this possible in Unity2D?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Unity-2D Launcher is controlled by file called Launcher.qml.

Whilst this method will work - changing a system file such as Launcher.qml could be overwritten by a future update.

First log out and log in using anything but unity2D(unity2D might crash if you edit that file while in use; in 12.04 Gnome will do).

Then backup Launcher.qml just in-case you need to restore the default settings.

(for 11.04 & 11.10)

cd /usr/share/unity-2d/launcher
sudo cp Launcher.qml Launcher.qml-backup

(for 12.04)

cd /usr/share/unity-2d/shell/launcher
sudo cp Launcher.qml Launcher.qml-backup

Now edit the file and find the line items.appendModel(devices);

gksudo gedit Launcher.qml

Now comment out the line using /* .... */ i.e.

enter image description here

Save - logout and login

share|improve this answer
    
Nice! Really fast and clean ;P –  Bruno Pereira Nov 20 '11 at 13:03
    
Thanks! This worked for me, CCSM didn't work, I guess because I'm in 2D. One note, in 12.04 the file is in the folder /usr/share/unity-2d/shell/launcher –  bwizzy Apr 15 '12 at 12:54
    
thanks @bwizzy - have updated. –  fossfreedom Apr 15 '12 at 15:48
    
Thanks - this worked for me –  Julien Chau May 3 '12 at 15:27

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.