Results 1 to 5 of 5

Thread: [SOLVED] Having deb packages create desktop shortcuts.

  1. #1
    Join Date
    Nov 2008
    Location
    Milky Way
    Beans
    141
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] Having deb packages create desktop shortcuts.

    I was wondering how to have a .deb file create a desktop shortcut to the application being installed? Is there a good way to do this, maybe in the postinst script?

  2. #2
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Red face Re: Having deb packages create desktop shortcuts.

    There is no good way to do that, because it's an evil Windows thing to do. Your app should install entries in the standard menus and nowhere else. Even extremely popular and useful apps such as Firefox and OpenOffice.org don't get icons on the desktop, so why is your app so important that it should get priority over them?

    I would delete any app that tried to take over my desktop like that. This isn't Windows.
    If people were nicer, I'd answer more queries here!

  3. #3
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Having deb packages create desktop shortcuts.

    We of Ubuntu are above such nonsense.

    Yes, the postinst script would be the place to put it. But remember that the location of the desktop can be changed; it's not always ~/Desktop.

    Also know that you're going to tick off a lot of people this way...

  4. #4
    Join Date
    Nov 2008
    Location
    Milky Way
    Beans
    141
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Having deb packages create desktop shortcuts.

    Yes, you are completely right, though I had never noticed that before, but now I appreciate it. Let me rephrase my question, how can I get my deb files to add shortcuts on the Applications menu?

  5. #5
    Join Date
    Nov 2008
    Location
    Milky Way
    Beans
    141
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Having deb packages create desktop shortcuts.

    Ok, I figured it out!
    I add a .desktop file to the /usr/share/applications file called application.desktop, and add an icon called application.svg to the /usr/icons/hicolor/scalable/apps directory. gedit even does the .desktop syntax highlighting for me!
    Last edited by Tamalin; November 20th, 2008 at 11:30 PM.

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
  •