I have two very similar .desktop launcher files that are to be used as internet shortcuts. When I double click on one file it opens properly in a webbrowser as I would like. When I double click on the other, it opens in a text editor which I do NOT like. How do I change this?
Good shortcut opens in browser:
[Desktop Entry]
Encoding=UTF-8
Name=Safari Books
Type=Link
URL=http://hdl.library.upenn.edu/1017/7026
Icon=text-html
Name[en_US]=Safari Books
Bad shortcut opens in text editor:
[Desktop Entry]
Encoding=UTF-8
Name=Learning Python
Type=Link
URL=http://proquestcombo.safaribooksonline.com/book/programming/python/9780596805395
Icon=text-html
Name[en_US]=Learning Python
.desktop
file and made the test, results: the first time I clicked it was opened in Firefox (good), now the second time (and the next...) it does open in GEdit. Not sure but this might actually be a bug. Try reporting it. Curiously Nautilus opens a dialog offering the possibility to cancel.