Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-01-2012, 02:50 PM   #1
LQ Newbie
Registered: May 2011
Posts: 8
Blog Entries: 1

Rep: Reputation: 0
Creating a custom launcher for .html file

I have been looking for something that I thought was going to be pretty simple. It may be that I don't realy know how to ask the question properly.

I have a game that uses an .html file to kick off execution. I open it under Nautilus the game runs just fine.

I want to have the game show up as an application on the dash dialog in unity.

I was expecting to create a .desktop file that refered to the .html

I tried "exec=/mypath/myfile.html". I tried invoking Firefox and Cromium-browser with the file as a parameter. The closest I got was executing nautilus, it opened the folder but not the file.

I am sure that I am using the wrong terminology to search for this information. I am getting very few hits on the subject.

Here is my most recent attempt, went back to my original idea and tried plaing with the mimetype.

[Desktop Entry]
Name=Samorost 2
Comment=Samorost Adventure
Old 06-01-2012, 06:56 PM   #2
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 281Reputation: 281Reputation: 281
Originally Posted by jag022054 View Post
This should work if you use

Exec=firefox /opt/samorost2/samorost2.html

If firefox opens empty or it's default page try putting quotes around it like :-

Exec='firefox /opt/samorost2/samorost2.html'
Old 06-02-2012, 03:48 PM   #3
LQ Newbie
Registered: May 2011
Posts: 8

Original Poster
Blog Entries: 1

Rep: Reputation: 0

I must have made capitaliztion errors on my first attempt. That works fine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating launcher of executable file-Ubuntu bidalah Linux - Newbie 2 12-06-2009 10:25 AM
Creating custom keyboard definition file Frank616 Linux - Software 5 06-19-2008 11:42 PM
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 04:15 PM
how can custom application launcher use my environmental variables tacca Linux - Software 1 06-01-2007 03:48 PM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 02:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration