Includes Exec lines using both simple and Perl syntax (for testing)

Signed-off-by: Alex Kent Hajnal <software@alephnull.net>
issue/42/fix-imageconverter-service-exec-lines
Alex Kent Hajnal 6 months ago
parent 478feafedf
commit 94fdb9614e
No known key found for this signature in database
GPG Key ID: 5050665AA3F08058

@ -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

Loading…
Cancel
Save