summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-17 20:48:26 +0900
committerMichele Calgaro <[email protected]>2023-07-17 22:27:44 +0900
commit83850aae7fd28a42cd163c076e07c85a6f930791 (patch)
tree729c6b1880d7ba4ac8ec7c86072597abd660420a
parent9af3b341a19756303a058aea839a08192aeda7f8 (diff)
downloaddolphin-83850aae7fd28a42cd163c076e07c85a6f930791.tar.gz
dolphin-83850aae7fd28a42cd163c076e07c85a6f930791.zip
Fix image conversion naming of files with multiple dots in the name. This relates to issue TDE/tdebase#376
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 5cf69458e44e0c7cf711963e2950aa3be624e36c)
-rw-r--r--src/servicemenus/imageconverter.desktop9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/servicemenus/imageconverter.desktop b/src/servicemenus/imageconverter.desktop
index c7b464c..8da4b6f 100644
--- a/src/servicemenus/imageconverter.desktop
+++ b/src/servicemenus/imageconverter.desktop
@@ -11,20 +11,19 @@ TryExec=convert
[Desktop Action convToJPEG]
Name=JPEG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.jpg"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.jpg"
[Desktop Action convToPNG]
Name=PNG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.png"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.png"
[Desktop Action convToTIF]
Name=TIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.tif"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.tif"
[Desktop Action convToGIF]
Name=GIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.gif"
-
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.gif"