Results 1 to 4 of 4

Thread: Discussion - https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

  1. #1
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Discussion - https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

    Please use this thread for discussion regarding

    https://help.ubuntu.com/community/Un...ndDesktopFiles

    Support threads should be posted in normal forums.

    Thank you.

  2. #2
    Join Date
    Jun 2010
    Beans
    49

    Re: Discussion - https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

    https://help.ubuntu.com/community/Un...ndDesktopFiles


    The part regarding editing an entry in the launcher is either incomplete or wrong.

    Specifically:

    So as to find the exact filename of the .desktop file you are interested in, open a terminal using Ctrl+Alt+T and give the following command:

    Code:
    gsettings get com.canonical.Unity.Launcher favorites
    This will output a list of all the .desktop files you already have in your launcher, from top to bottom, like this:
    Code:
    ['nautilus-home.desktop', 'firefox.desktop', 'filezilla.desktop', 'ubuntu-software-center.desktop', 'qtcreator.desktop', 'ubuntuone-installer.desktop', 'wallch.desktop', 'gnome-terminal.desktop', 'gedit.desktop', 'audacious.desktop', 'gnome-control-center.desktop']
    (...)
    Now you have in your clipboard the filename of your file, but not its path. Your file can be either under ~/.local/share/applications/ or under /usr/share/applications/
    OR SOMEWHERE ELSE.

    In my case the first command gives me:

    Code:
    ['application://nautilus-home.desktop', 'application://gnome-terminal.desktop', 'application://google-chrome.desktop', 'application://thunderbird.desktop', 'application://filezilla.desktop', 'application://gedit.desktop', 'unity://running-apps', 'unity://expo-icon', 'unity://devices']
    and I have no google.chrome.desktop file neither under ~/.local/share/applications/ or under /usr/share/applications/

    If I knew the complete list of the path where to look, I would edit the wiki, but I have no idea.

  3. #3
    Join Date
    May 2007
    Beans
    120
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Discussion - https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

    Quote Originally Posted by matteosistisette View Post
    https://help.ubuntu.com/community/Un...ndDesktopFiles


    The part regarding editing an entry in the launcher is either incomplete or wrong.

    Specifically:



    OR SOMEWHERE ELSE.

    In my case the first command gives me:

    Code:
    ['application://nautilus-home.desktop', 'application://gnome-terminal.desktop', 'application://google-chrome.desktop', 'application://thunderbird.desktop', 'application://filezilla.desktop', 'application://gedit.desktop', 'unity://running-apps', 'unity://expo-icon', 'unity://devices']
    and I have no google.chrome.desktop file neither under ~/.local/share/applications/ or under /usr/share/applications/

    If I knew the complete list of the path where to look, I would edit the wiki, but I have no idea.
    Plus one for writing out the normal .desktop locations. I also noted the lack of that data. Supposedly one (myself included) could edit that wiki - but that means I'd have to figure out how to login and all that jazz. Too many distractions atm. Those locations SHOULD be included in that wiki - very important. [EDIT] Strike that comment (highlighted). Strange - but for some reason my browser loaded an older version of the page (?????) - and in trying not to be lazy I tried to figure out how to edit the wiki - and it loaded an edited page which included the locations. Very odd that I should see two version without going into the wiki history tho. hmmmmm . . .

    As for if you file isn't in those locations? Sounds like time for "find" - but you probably already know that by now ---
    Last edited by mbuell; January 11th, 2014 at 11:41 AM.

  4. #4
    Join Date
    Jan 2007
    Location
    Toronto ON Canada
    Beans
    1,077
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Discussion - https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

    I don't know if this is where this comment belongs - but rather than working to create the .desktop file for yourself - why not let Unity do it for you? If all you want is to run the program from the Launcher....

    For instance I got Sigil (ebook editor/creator) in a form that ran only from the terminal and...

    1. Open terminal (using any of several methods - I dragged it from the dash to the panel)
    2. Start the program running (in my case, just enter sigil )
    3. Right click on the icon that shows up in the panel, select "Lock to launcher"

    All done - no knowledge required!

    Code:
    [Desktop Entry]
    Type=Application
    Name=Sigil
    Comment=ePUB file editor
    Exec=sigil %F
    Icon=sigil
    Categories=Office;FileTools;Qt;Viewer;TextTools;TextEditor;Utility;
    MimeType=application/epub+zip;

    Surely this works for other things too?
    Last edited by freebird54; January 20th, 2014 at 08:13 AM. Reason: Add in resulting .desktop file
    |Intel E6550 2.33 | Intel mb/gfx/snd | 4 Gb RAM | Seagate 500Gb | Magnasonic 19" | Ubuntu 12.04 | AMD A10 5800K 3.8GHz / ATI gfx| Asus A88X-Pro mb/snd | 8 Gb RAM | Corsair Force 128 GB SSD | Seagate 3+2TB | USB 2TB | Sony 40" | Ubuntu 12.04 / 14.04 |

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •