summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2023-07-23 11:17:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-23 11:17:00 +0900
commit552ed5a5e18336037508ff9524e7c4cfc6b156b6 (patch)
tree1997e045f976af84fcad2a16842e3e353a13d764
parent614887eb433d4e2f40808f60e3993d7a0bf51caa (diff)
downloaddolphin-552ed5a5e18336037508ff9524e7c4cfc6b156b6.tar.gz
dolphin-552ed5a5e18336037508ff9524e7c4cfc6b156b6.zip
Improve code for image conversion. This relates to issue TDE/tdebase#376.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/servicemenus/imageconverter.desktop8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servicemenus/imageconverter.desktop b/src/servicemenus/imageconverter.desktop
index 8da4b6f..dceb183 100644
--- a/src/servicemenus/imageconverter.desktop
+++ b/src/servicemenus/imageconverter.desktop
@@ -11,19 +11,19 @@ TryExec=convert
[Desktop Action convToJPEG]
Name=JPEG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.jpg"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].jpg'
[Desktop Action convToPNG]
Name=PNG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.png"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].png'
[Desktop Action convToTIF]
Name=TIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.tif"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].tif'
[Desktop Action convToGIF]
Name=GIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.gif"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].gif'