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.

If you like to have quick link bookmarks on your unity launcher check out this easy to make application

Using some information from various online sources https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles I came up with my little desktop application.

app right click

Start by installing desktop shortcuts

sudo apt-get install --no-install-recommends gnome-panel 

then run

gnome-desktop-item-edit --create-new ~/Desktop

Create a basic launcher desktop shortcut.

Basic Launcher

Once your default Desktop file is created you will want to edit it. Example Below:

gedit <Your File name>

Example:

My below desktop file script is named "Bookmarks". If you are copy/pasting the script below, you will want to account for that with my file below or it will not run properly.

[Desktop Entry]
Version=1.0
Type=Application
Name=Bookmarks
Icon=firefox.png
Exec=xdg-open https://askubuntu.com/
Terminal=false
Actions=AskUbuntu;Google;Gmail;Yahoo

[Desktop Action AskUbuntu]
Name=AskUbuntu
Exec=xdg-open http://askubuntu.com/
OnlyShowIn=Unity;

[Desktop Action Google]
Name=Google
Exec=xdg-open http://www.google.com
OnlyShowIn=Unity;

[Desktop Action Gmail]
Name=Gmail
Exec=xdg-open http://www.gmail.com
OnlyShowIn=Unity;

[Desktop Action Yahoo]
Name=Yahoo
Exec=xdg-open http://www.yahoo.com
OnlyShowIn=Unity;

Once complete move file to applications folder, and can be treated as an application.

sudo nautilus

move file to usr/share/applications

Then drag drop to unity launcher if desired. Here is where the bash script becomes useful.

Once the desktop link is on the unity launcher you will have several right click options as listed below in Actions. Note the corresponding actions at the bottom of the file.

You can change the Actions to sort in your preference and set the default "Exec=" to your left click preference as well

One of the great features of this as a shortcut on your unity launcher is the Right Click "Quit" function which will close all open windows.

share|improve this question
2  
Hello again. Like I mentioned on the other question, can you move the current question content to the answer section and phrase your question like you actually have one? Thank you. –  jokerdino Jun 4 '13 at 18:26
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.