Re: pgA3 desktop integration - Mailing list pgadmin-hackers

From Raphaël Enrici
Subject Re: pgA3 desktop integration
Date
Msg-id 3F3CCDB7.40600@club-internet.fr
Whole thread Raw
In response to Re: pgA3 desktop integration  (Jean-Michel POURE <jm@poure.com>)
Responses Re: pgA3 desktop integration  (Jean-Michel POURE <jm@poure.com>)
List pgadmin-hackers
Jean-Michel POURE wrote:

>On Thursday 14 August 2003 15:59, Raphaël Enrici wrote:
>
>
>>did someone on the list made some icons that could be used to integrate
>>pgAdmin3 into our favorites desktops (Gnome, kde and so on) ?
>>I'm currently making some files to add to Debian packages so that
>>pgAdmin becomes available automatically in Gnome's menus after package
>>installation.
>>
>>
>Keep us informed about your scripts. I am interested...
>Jean-Michel
>
>
debian uses a package called "menu" that provide a command called
"update-menus"
All you have to do is installing a file called pgadmin3 in
/usr/lib/menu/pgadmin3 and launch update-menus in postinstall and your
menu entry will be added to kde, gnome, wmaker and others...
The file looks like this :
?package(pgadmin3):needs="x11" section="Apps/Databases" \
        title="pgAdmin3" command="pgadmin3" hints="Graphical client for
PostgreSQL" \
        icon=/usr/share/pixmaps/pgadmin3.xpm

As I can remember I've seen similar things in recent redhat distros, I
did a quick search on redhat site and found some references to it for mdk :)
In spec file you can add such things:

%post
%{update_menus}

%postun
%{clean_menus}

You will find more detailed information concerning this at
http://rpm.redhat.com/hintskinks/buildtree/mdk-rpm/

Can you have a try by hand on RPM based distros (it would be cool that
suse does this too) and let me know if it works well ? Just try to copy
pgadmin3 in /usr/lib/menu and launch update-menus.

If it is ok for all distros, it would be nice to have an unique file in
CVS that we could add to linux and may be other unices packages.

We stay in touch.

Last but not least, do you have an icon (xpm, gif,...) ?

Raphaël


pgadmin-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: Some remarks to pgadmin III
Next
From: "Claus Helbing"
Date:
Subject: Re: Some remarks to pgadmin III