On Wed, 25 Nov 2009 20:50:14 +0100 Michal Čihař wrote:

[...]
> Dne Wed, 25 Nov 2009 19:44:15 +0100
> Francesco Poli <f...@firenze.linux.it> napsal(a):
> 
> > You mean I have to follow this standard spec:
> > http://standards.freedesktop.org/desktop-entry-spec/latest/
> > Or did I get this wrong?
> > 
> > Where am I recommended to put the .desktop file?
> > In  ~/.local/share/geeqie/applications/  perhaps?
> 
> That should be it. However I didn't try it myself, so my guess might be
> absolutely wrong.

OK, I tried the following and it seems to work as intended.


Select Configure Editors... from the Edit/Preferences menu.
Click on the New button and enter:

  [Desktop Entry]
  Version=1.0
  Type=Application
  Name=Losslessly rotate JPEG image clockwise

  # call the helper script
  TryExec=exiftran
  Exec=exiftran -p -9 -i %f

  # Desktop files that are usable only in Geeqie should be marked like this:
  Categories=X-Geeqie;
  OnlyShowIn=X-Geeqie;

  # Show in menu "Edit/Orientation"
  X-Geeqie-Menu-Path=EditMenu/OrientationMenu

  # It can be made verbose
  # X-Geeqie-Verbose=true

  MimeType=image/jpeg;

Name it "exiftran9.desktop".  Click on the Save button and then on
the Close button.  Again, click on the New button and enter:

  [Desktop Entry]
  Version=1.0
  Type=Application
  Name=Losslessly rotate JPEG image counterclockwise

  # call the helper script
  TryExec=exiftran
  Exec=exiftran -p -2 -i %f

  # Desktop files that are usable only in Geeqie should be marked like this:
  Categories=X-Geeqie;
  OnlyShowIn=X-Geeqie;

  # Show in menu "Edit/Orientation"
  X-Geeqie-Menu-Path=EditMenu/OrientationMenu

  # It can be made verbose
  # X-Geeqie-Verbose=true

  MimeType=image/jpeg;

Name it "exiftran2.desktop".  Click on the Save button and then on
the Close button.  Finally, click on Close button of the "Editors" dialog
window.


P.S.: for the record, this procedure creates two files in
~/.config/geeqie/applications/

P.P.S.: Michal, could these two files be placed in
/usr/share/geeqie/applications/ by package geeqie-common
and configured as default editors, so that users are not required to
apply the above-described manual configuration?
Also, I would suggest to forward the files upstream...


-- 
 New location for my website! Update your bookmarks!
 http://www.inventati.org/frx
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: pgp0fowflmZgL.pgp
Description: PGP signature

Reply via email to