LOGIN

Quicklists for unity apps

What are quicklists? if you right click an app in the unity dash, you get a textbox, mostly the app name and the option to pin the app in the dash. If you want to have more options, well thats where this tutorial comes in handy.

This is what you will do first run the command:mkdir ~/.local/share/applications This will create a directory in you /home/your username/.local/share/applications.

We will start first with nautilus. The next code, will backup the nautilus-home.desktop file to your /home/your username/.local/share/applications

cp /usr/share/applications/nautilus-home.desktop ~/.local/share/applications

We will copy it first to our local account, in ~/.local/share/applications, so that when we edit our .desktop files, the effect are only shown in that account. Also when I/we muck-t something up, you can copy the original .desktop file from /usr/share/applications/**.desktop

gedit ~/.local/share/applications/nautilus-home.desktop

now we will add this at the bottom of the page

  1. X-Ayatana-Desktop-Shortcuts=Downloads;Documents;Pictures;Music;Videos;RootFM;
  2. [Downloads Shortcut Group]
  3. Name=Downloads
  4. Exec=nautilus Downloads
  5. TargetEnvironment=Unity
  6. [Documents Shortcut Group]
  7. Name=Documenten
  8. Exec=nautilus Documenten
  9. TargetEnvironment=Unity
  10. [Pictures Shortcut Group]
  11. Name=Pictures
  12. Exec=nautilus Pictures
  13. TargetEnvironment=Unity
  14. [Music Shortcut Group]
  15. Name=Music
  16. Exec=nautilus Music
  17. TargetEnvironment=Unity
  18. [Videos Shortcut Group]
  19. Name=Videos
  20. Exec=nautilus Videos
  21. TargetEnvironment=Unity
  22. [RootFM Shortcut Group]
  23. Name=Root
  24. Exec=gksudo nautilus
  25. OnlyShowIn=Unity

you can change the Exec=Nautilus Documenten to where ever you have your documents folder Exec=nautilus /media/DATA-patition/Documenten see the image below hot its gonna look

1

Now for the second example we will use virtual box, run the follwowing command to copy it to yourapplications folder in your $username/.local: cp /usr/share/applications/virtualbox.desktop ~/.local/share/applications. Then to edit that file: gedit ~/.local/share/applications/virtualbox.desktop

Then add this to the bottom of the virtualbox.desktop

  1. X-Ayatana-Desktop-Shortcuts=WindowsXP;Server_2008;Ubuntu;
  2. [WindowsXP Shortcut Group]
  3. Name=Start Windows XP
  4. Exec=/usr/lib/virtualbox/VirtualBox --comment "winxp" --startvm "winxp"
  5. TargetEnvironment=Unity
  6. [Server_2008 Shortcut Group]
  7. Name=Start Server 2008
  8. Exec=/usr/lib/virtualbox/VirtualBox --comment "server_2008" --startvm "server_2008"
  9. TargetEnvironment=Unity
  10. [Ubuntu Shortcut Group]
  11. Name=Start Ubuntu 11.10
  12. Exec=/usr/lib/virtualbox/VirtualBox --comment "ubuntu" --startvm "ubuntu"
  13. TargetEnvironment=Unity

I have a window xp, server 2008, and ubuntu 11.10 virtual machine, if you made a new virtual machine lets say windows 7, add windows 7 in this line.

X-Ayatana-Desktop-Shortcuts=WindowsXP;Server_2008;Ubuntu;Win7;

and at the bottom of the page add

  1. [Win7 Shortcut Group]
  2. Name=Start Windows 7
  3. Exec=/usr/lib/virtualbox/VirtualBox --comment "win-7" --startvm "win-7"
  4. TargetEnvironment=Unity

Remember at the Exec the --comment "Win7" and --startvm "Win7" has to be the same as your virtualbox windows 7 name.

2

Now i can go on and on about unity quicklists but i rather refer you to this Askubuntu page where you can learn similiar quicklist edits. You can also edit the .desktop file to fit your needs. Here are some screenshots.

Image gallery

License: CC BY-SA 4.0 EuroBytes | EuroBytes theme by | This website uses cookies. By using this website, you agree to its use of cookies. Information: Privacy, Terms Of Use.