LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-01-2012, 02:50 PM   #1
jag022054
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]
Categories=Game
Exec=/opt/samorost2/samorost2.html
Path=/opt/samorost2/
Icon=/opt/CrayonPhysicsDeluxe/icon.png
Terminal=false
Type=Application
MimeType=text/html;
Name=Samorost 2
Comment=Samorost Adventure
 
Old 06-01-2012, 06:56 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 865

Rep: Reputation: 264Reputation: 264Reputation: 264
Quote:
Originally Posted by jag022054 View Post
Exec=/opt/samorost2/samorost2.html
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
jag022054
LQ Newbie
 
Registered: May 2011
Posts: 8
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Thanks

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


Reply


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


All times are GMT -5. The time now is 08:39 PM.

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