Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to open a specific file directly from the launcher.

I have created a launcher (myFile.desktop) of type Location, which works like a charm when on the Desktop. I moved it to /usr/share/applications/ or ~/.local/share/applications/ so I can find it over the dash. But I cannot stick it to the laucher (which again is no problem, if I change the type to Application, but then of course it doesn't work any more).

Is this even possible?

I created the laucher via gnome-desktop-item-edit ~/Desktop/ --create-new

And the .desptop file looks like:

#!/usr/bin/env xdg-open

[Desktop Entry]
share|improve this question
Add the content of the .desktop file to your question please. – Bruno Pereira Jan 31 '13 at 11:22
up vote 1 down vote accepted

I suggest you modify myFile.desktop file like this:

[Desktop Entry]
Exec=xdg-open 'smb://myServer/userhomes/myFiles/arbeitszeit/Zeitkontrolle_6.ods'
share|improve this answer

Your Answer


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.