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 have been trying to make a launcher with a quicklist item for 'root file browser' using command 'gksudo nautilus'. After I updated to this launcher in the unity sidebar, each time I click the icon (which still points to the normal nautilus for left click) a separate nautilus icon appears elsewhere in the sidebar with the title 'Files'. I really want it to appear under the same icon in the sidebar. I copied the nautilus-home.desktop from /usr/share/applications.

Here is the contents of the nautilus-home.desktop file in ~/.local/share/applications

[Desktop Entry]
Name=File Browser
Comment=Open your personal folder
Exec=nautilus
Icon=user-home
Terminal=false
StartupNotify=true
Type=Application
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Core;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.0.0
X-Ubuntu-Gettext-Domain=nautilus

X-Ayatana-Desktop-Shortcuts=Root

[Root Shortcut Group]
Name=Root File Browser
Exec=gksudo nautilus
TargetEnvironment=Unity

I hope this helps.

share|improve this question
add comment

1 Answer 1

Remove the 9th line in your .desktop - "OnlyShowIn=Gnome;Unity;", then probably do a log out/in

share|improve this answer
    
Can you explain why this works? All the tutorials I have seen include this. Unfortunately, I am on away from the computer for two days so will get back when I can test it. –  iamthepiguy Dec 21 '11 at 22:05
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.