summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kent Hajnal <software@alephnull.net>2024-05-24 08:19:04 -0400
committerAlex Kent Hajnal <software@alephnull.net>2024-05-24 08:26:26 -0400
commit94fdb9614e37f7a9723f95e0493c5342b20c205e (patch)
treea5104521e36f4938695b1d84e73146e0099b88f4
parent478feafedf1bd2b2bb5925968fd551b364b7f7c2 (diff)
downloadtdeaddons-94fdb9614e37f7a9723f95e0493c5342b20c205e.tar.gz
tdeaddons-94fdb9614e37f7a9723f95e0493c5342b20c205e.zip
Includes Exec lines using both simple and Perl syntax (for testing)issue/42/fix-imageconverter-service-exec-lines
Signed-off-by: Alex Kent Hajnal <software@alephnull.net>
-rw-r--r--konq-plugins/imagerotation/imageconverter.desktop13
1 files changed, 9 insertions, 4 deletions
diff --git a/konq-plugins/imagerotation/imageconverter.desktop b/konq-plugins/imagerotation/imageconverter.desktop
index 7aba3e6..41809bb 100644
--- a/konq-plugins/imagerotation/imageconverter.desktop
+++ b/konq-plugins/imagerotation/imageconverter.desktop
@@ -5,14 +5,19 @@
[Desktop Entry]
Icon=image-x-generic
X-TDE-ServiceTypes=image/*
-Actions=convToJPEG;convToPNG;convToGIF;convToTIF;
+Actions=convToJPEGsimple;convToJPEGviaPerl;convToPNG;convToGIF;convToTIF;
X-TDE-Submenu=Convert To
TryExec=convert
-[Desktop Action convToJPEG]
-Name=JPEG
+[Desktop Action convToJPEGsimple]
+Name=JPEG (simple)
Icon=image-x-generic
-Exec=convert %f "$$( echo -n %f\[0\] | perl -pe 's/%/%%/gs; $$n=$$_; open $$h, "-|", "identify", "-format", "%d/%t", $$n; $$_=<$$h>; close $$h; chomp;' ).jpg"
+Exec=convert %f "$$( identify -format "%%d/%%t-simple.jpg" %f )"
+
+[Desktop Action convToJPEGviaPerl]
+Name=JPEG (via Perl)
+Icon=image-x-generic
+Exec=convert %f "$$( echo -n %f\[0\] | perl -pe 's/%/%%/gs; $$n=$$_; open $$h, "-|", "identify", "-format", "%d/%t", $$n; $$_=<$$h>; close $$h; chomp;' )-perl.jpg"
[Desktop Action convToPNG]
Name=PNG