Results 1 to 2 of 2

Thread: Creating a DEB that installs a python App into the Applications Menu

  1. #1
    Join Date
    May 2008
    Location
    UK
    Beans
    1,451
    Distro
    Ubuntu 8.04 Hardy Heron

    Creating a DEB that installs a python App into the Applications Menu

    I have written a simple Python game - and i want to create a DEB for the game that will
    1) install the game script into /usr/game (I think i have that bit down),
    2) Will also install a launcher into the Application -> Games menu.

    It is this second bit that has confused me thoroughly - it is not obvious to me how i add something to a menu, where i need to put my launcher file, icon etc to make this all work. Any hints/guides/how-tos.
    Tony - Happy to try to help.
    Unless otherwise stated - all code posted by me is untested. Remember to Mark the Thread as Solved.
    Ubuntu user number # 24044 Projects : TimeWarp - on the fly Backups

  2. #2
    Join Date
    Feb 2007
    Location
    Brighton, UK
    Beans
    58
    Distro
    Ubuntu

    Re: Creating a DEB that installs a python App into the Applications Menu

    I've written a couple of projects in python and created deb installers for them.

    In short you need a small text config file in /usr/share/applications called $name.desktop ($name being whatever is the name of your app)

    Take a look on your computer at the .desktop files in /usr/share/applications. This will give you an idea of how to produce your own that you can add into your deb installer, including how to include an icon.

    Hope this helps.

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
  •