Thread: Desktop Entry
View Single Post
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#6
Ok, I also tried and made it now to work :P

Create a script somewhere, for test purposes let's assume it's in /opt/openwebsite.sh:
Originally Posted by /opt/openwebsite.sh
#!/bin/sh
`/usr/bin/browser --url=$1 &`
What it does is just open url given as parameter in browser and return immediately (that's why "&" character is in the end, if it was not there, strangely "browser" never returns on my device... anyone have same problems?)

Don't forget to make it executable (chmod a+x /opt/openwebsite.sh). You must edit (or create) the script as root and also chmod command must me executed as root.

And now I have a working shortcut (wtf? no need to "\" before space? I thought that's required?)
Originally Posted by /usr/share/applications/hildon/test.desktop
[Desktop Entry]
Version=1.0
Name=cimb
Type=Application
Comment=Shortcut to some website
Exec=/opt/openwebsite.sh "http://www.google.com"
Icon=cimb
Does it work for you also? Try with http://www.google.com and then change to your website address