Results 1 to 3 of 3

Thread: adding entries to gnome-menu in postinst

  1. #1
    Join Date
    Jan 2010
    Beans
    108
    Distro
    Ubuntu 10.04 Lucid Lynx

    adding entries to gnome-menu in postinst

    After having figured out how to package something to a .deb file, I'd like to know how I can make my program appear in the gnome menu.

    I've already tried making a <name>.desktop file, and copying it to /usr/share/applications in an attempt to directly alter the menu. (this was done by the postinst script of course)
    Sadly, this doesn't seem to work for me. The file is copied, but the menu does not change.

    Kind regards,
    Jake

  2. #2
    Join Date
    May 2008
    Beans
    1,029

    Re: adding entries to gnome-menu in postinst

    I don't know how to do it from the post-install. Could you post your .desktop file?

    If you want, you can use debreate to generate a .desktop file.

    1) Open debreate
    2) Go to "Menu" tab
    3) Fill out info
    4) Click on "File" -> "Save .desktop"

  3. #3
    Join Date
    Jan 2010
    Beans
    108
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: adding entries to gnome-menu in postinst

    I managed it on myself!
    Turns out I forgot to do chmod a+x to make the .desktop executable.

    Now the only step that's left is getting it into the repos

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
  •