Frederic Crozat wrote: > --=-=-= > * Thu Jan 16 2003 Frederic Crozat <[EMAIL PROTECTED]> 1.2.3-19mdk > > - Fix menu entry to use gimp-remote
Cool! But does it still launch from the menu (when not called with a filename as argument)? > > --- gimp-1.2.3-18mdk.src.rpm/gimp.spec 2003-01-16 17:15:51.000000000 +0100 > +++ gimp-1.2.3-19mdk.src.rpm/gimp.spec 2003-01-16 17:15:52.000000000 +0100 > @@ -7,7 +7,7 @@ > #%define pre -pre2 > %define subver %lib_major.%lib_minor > %define ver %{subver}.%{revision} > -%define rel 18mdk > +%define rel 19mdk > %define major %{subver}_%{lib_major} > # Non Versionnated lib name : > %define nvlibname lib%{name} > @@ -286,7 +286,7 @@ > cat %SOURCE12 > $RPM_BUILD_ROOT%_iconsdir/large/wilbur.png > > cat >$RPM_BUILD_ROOT%_menudir/gimp <<EOF > -?package(gimp): command="gimp" icon="wilbur.png" section="Multimedia/Graphics" >title="The GIMP" longtitle="The GNU Image Manipulation Program" needs="x11" >mimetypes="image/gif;image/jpeg;image/png;image/tiff;image/x-xbm;image/x-xpm;image/bmp;image/fits;image/pcx;image/pix;image/pnm;image/x-bmp" > +?package(gimp): command="gimp-remote -n" icon="wilbur.png" >section="Multimedia/Graphics" title="The GIMP" longtitle="The GNU Image Manipulation >Program" needs="x11" >mimetypes="image/gif;image/jpeg;image/png;image/tiff;image/x-xbm;image/x-xpm;image/bmp;image/fits;image/pcx;image/pix;image/pnm;image/x-bmp" > accept_url="true" multiples_files="true" > EOF With gimp-1.2.3-18mdk: [bgmilne@bgmilne bgmilne]$ gimp-remote -n gimp-remote version 1.2.3 Tells a running Gimp to open a (local or remote) image file. Usage: gimp-remote [options] [FILE|URI]... Valid options are: -h --help Output this help. -v --version Output version info. -n --new Start gimp if no active gimp window was found. Example: gimp-remote http://www.gimp.org/icons/frontpage-small.gif or: gimp-remote localfile.png [bgmilne@bgmilne bgmilne]$ So, menu entry won't launch Gimp. On my machines, I edited /usr/lib/menu/gimp to contain two entries ('The Gimp', and 'Open in exising Gimp') to work around this problem. The real problem is that the menu package doesn't know the difference between launching for mime-type and lauching from menu? Buchan -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7