Reply
Thread Tools
Posts: 32 | Thanked: 1 time | Joined on Mar 2012
#1
Hi All,
Can somebody help me with create luncher icon for a file?
I want to get a shortcut on the luncher screen which will open a file from MyDocs.
I now that it must be created *.desktop file in /usr/share/applications but what should contain?

Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=???
Terminal=false
Name=MyFile
Exec=???
Icon=path_to_png_file
X-Window-Icon=???
X-HildonDesk-ShowInToolbar=true ???
X-Osso-Type=application/x-executable ????
 
K9999's Avatar
Posts: 168 | Thanked: 116 times | Joined on Mar 2011 @ Malaysia
#2
I don't know about N9 if it has filebox cuz this is how I do it on N900

PHP Code:
[Desktop Entry]
Encoding=UTF-8
Version
=0.13
Type
=Application
Name
=MyFile
Exec
=filebox '/home/user/.......path to file'
Icon=myicon 
 

The Following User Says Thank You to K9999 For This Useful Post:
Posts: 32 | Thanked: 1 time | Joined on Mar 2012
#3
And if I will say that the file is html file it will change something?
 
K9999's Avatar
Posts: 168 | Thanked: 116 times | Joined on Mar 2011 @ Malaysia
#4
that code I mentioned earlier is to open a certain folder/file. but if you wanna open an html link or a picture then it is different. you need to call the browser. you're aiming to open an html file?

=====

if that's the case, let's say you wanna make a google link shortcut. you'll have to change the Exec line too look like this:
PHP Code:
Exec=/usr/bin/browser_dbuscmd.sh load_url http://www.google.com 
This is the case with N900

Last edited by K9999; 2012-03-28 at 06:43.
 

The Following 2 Users Say Thank You to K9999 For This Useful Post:
Posts: 32 | Thanked: 1 time | Joined on Mar 2012
#5
OK, I have to call Internet Browser but it must open my (local) HTML file located on MyDocs. How to inform the path to a file?
 
Posts: 150 | Thanked: 169 times | Joined on Nov 2011 @ Sweden
#6
As usual, check the Wiki before asking a question. It has a good run-down on .desktop files and the different applicable entries.
 
Posts: 32 | Thanked: 1 time | Joined on Mar 2012
#7
Originally Posted by bocephus View Post
As usual, check the Wiki before asking a question. It has a good run-down on .desktop files and the different applicable entries.
I didn't find this information, that's why I'm asking here...
 
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#8
Originally Posted by cynik606 View Post
OK, I have to call Internet Browser but it must open my (local) HTML file located on MyDocs. How to inform the path to a file?
Exec=/usr/bin/browser_dbuscmd.sh load_url file:///home/user/MyDocs/<html file name>
 
erendorn's Avatar
Posts: 738 | Thanked: 983 times | Joined on Apr 2010 @ London
#9
have you tried typing the url of your file ( file:///home/user/MyDocs/<html file name> ) in the browser and then "add to home" like any website?
 
catbus's Avatar
Posts: 887 | Thanked: 2,444 times | Joined on Jun 2011
#10
Hi

Sorry, I borrow this topic... Can someone tell how to make launcher for multible instances of application... like terminal?

I'd like to make different laucher for terminal with top but if i have terminal allready running that does not work...

Thank You
__________________
N9 - My Precious...

"Gods have mercy. Cats don't..." <- Kaotik@iotech
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:42.