Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Create *.desktop entry for a file

    Reply
    Page 1 of 2 | 1   2   | Next
    cynik606 | # 1 | 2012-03-27, 22:43 | Report

    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 ????

    Edit | Forward | Quote | Quick Reply | Thanks

     
    K9999 | # 2 | 2012-03-28, 01:16 | Report

    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 

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to K9999 For This Useful Post:
    demludi

     
    cynik606 | # 3 | 2012-03-28, 05:55 | Report

    And if I will say that the file is html file it will change something?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    K9999 | # 4 | 2012-03-28, 06:26 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by K9999; 2012-03-28 at 06:43.
    The Following 2 Users Say Thank You to K9999 For This Useful Post:
    cddiede, demludi

     
    cynik606 | # 5 | 2012-03-28, 12:52 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bocephus | # 6 | 2012-03-28, 12:58 | Report

    As usual, check the Wiki before asking a question. It has a good run-down on .desktop files and the different applicable entries.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cynik606 | # 7 | 2012-03-28, 15:32 | Report

    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...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    cddiede | # 8 | 2012-03-28, 15:59 | Report

    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>

    Edit | Forward | Quote | Quick Reply | Thanks

     
    erendorn | # 9 | 2012-03-28, 16:42 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    catbus | # 10 | 2012-03-28, 18:07 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout