[Discuss] kde/gnome menus

John Blomfield jabfield at shaw.ca
Fri Jun 27 14:54:31 PDT 2008


Corey Burger wrote:
> On Thu, Jun 26, 2008 at 2:39 PM, John Blomfield <jabfield at shaw.ca> wrote:
>   
>> I am trying to write a package installation script (in Python as it happens
>> but it could be any other script) and I want to add the application
>> automatically to the desktop menus (kde and gnome).  I can create a
>> myapp.desktop file on the desktop and also add a menu item to the menu using
>> Kmenu editor or Gnomes equivalent manually or instruct a user to do this but
>> I want to do this automatically, in the script, for the recipient of my
>> package. (Assuming someone wants to try it!).  I can't seem to find a bash,
>> C or python function but perhaps I'm not looking in the wrong place?  The
>> various configuration scripts are in /etc/xdg/menus but I don't want to
>> parse and edit these directly if there is a tool to do the job.
>>
>> John Blomfield
>>     
>
> Assuming the installer is system-wide, the .desktop file goes in
> /usr/share/applications
> If it is per-user, it goes in .local/applications
>
> Why are you not building a native package? Or better yet, letting the
> distros package it for you?
>
>   
I have not done this before so don't know what you mean exactly as a 
"native" package?  I believe you first have to get a distro to "adopt" 
your program?  I was planning to upload the package to Source Forge.

John

> Corey
>
>   



More information about the Discuss mailing list