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 18:54:10 +0900
commit4c7209eef7e6e393ba78d1293167b17054b8e3af (patch)
tree468ee22e0ceec325195970f2416f46f59ea7a4e1
parent5f4a60b24211a3a26cacd2fe3fac577e9b13d916 (diff)
downloaddolphin-4c7209eef7e6e393ba78d1293167b17054b8e3af.tar.gz
dolphin-4c7209eef7e6e393ba78d1293167b17054b8e3af.zip
Improve code for image conversion. This relates to issue TDE/tdebase#376.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 552ed5a5e18336037508ff9524e7c4cfc6b156b6)
-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'