View Single Post
Posts: 4 | Thanked: 0 times | Joined on Dec 2009 @ Canada
#1
I am trying to package a big javascript game (2MB data) and wonder how to launch it.

A desktop file in /usr/share/applications/hildon in which a browser with the file-URL is started somewhat works:

[Desktop Entry]
Categories=user/games
Encoding=UTF-8
Version=1.0
Type=Application
Name=skattrainer
Icon=skattrainer
Exec=/usr/bin/browser --url=file:///opt/skattrainer/index.html

However, after exiting the browser the process remains and after multiple invocations the browser freezes. How to launch the browser properly from a desktop file?

Alternatively, I could also just use a bookmark.
So there the question is how to add one automatically when the package is installed?

Thanks for any pointers.