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 create an application of a website in Chromium and choose "desktop", a .desktop file is created. In 12.04, you were able to move it to ~/.local/share/applications/ and then start it from the Dash or the launcher. In my fresh 12.10 installation, this doesn't work anymore. I think the line that is misinterpreted is Exec=/usr/bin/chromium-browser --app=http://buymeapie.com/. If you try to run it from a terminal, you get the following result:

20:32 ~ speter > Exec=/usr/bin/chromium-browser --app=http://buymeapie.com/ bash: --app=http://buymeapie.com/: Datei oder Verzeichnis nicht gefunden

(English: "File or directory not found").

Can anyone explain or knows a workaround?

share|improve this question
add comment

1 Answer 1

up vote 10 down vote accepted
+50

The problem is within the file Chromium creates. Using your example, this is the .desktop it creates:

#!/usr/bin/env xdg-open[Desktop Entry]
Version=1.0
Name=Buy Me a Pie! - Lista de Compras
Exec=/usr/bin/chromium-browser --app=http://buymeapie.com/
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chrome-http___buymeapie.com_
Categories=Network;WebBrowser;
StartupNotify=true
StartupWMClass=buymeapie.com

the problem is in the first line, the "shebang line" and the desktop entry definition should be in two different lines

#!/usr/bin/env xdg-open
[Desktop Entry]
(...)

So this should be a Chromium bug. To correct this, you only have to open the .desktop created with a text editor and add a new line between those two lines.

PS: The Exec line is correct: if you execute /usr/bin/chromium-browser --app=http://buymeapie.com/ in a terminal the website is shown.

share|improve this answer
    
Works. thanks a lot! –  speter Nov 6 '12 at 0:08
2  
Note that if you chose menu instead of desktop when creating the application, the file will be found here: ~/.local/share/applications/ –  Mike McKay Nov 15 '12 at 15:14
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.