To continue from above, it is clear that the bug is not in the regex, but in how KDE parses and uses the Exec line. So far I've tracked execution of these command lines to these files:
http://lxr.kde.org/source/KDE/kdelibs/kio/kio/krun.cpp?v=3.5-branch#363 http://lxr.kde.org/source/KDE/kdelibs/kdecore/kmacroexpander.cpp?v=3.5-branch#100 My guess is the problem is in the latter, something to do with how the line is being quoted, which is not at all trivial to understand. If you change the exec line to this: Exec=convert %f "`stripextension %f`.jpg" where stripextension is a bash script: #!/bin/sh echo $1 | perl -pe 's/\.[^.]+$//' ...it works as expected. However, the following version of stripextension is more robust, and will work if the path contains dots but the file has no extension at all. #!/bin/sh echo -n $1 | perl -pe 's/\.[^.\/]+$//' (there is obviously a better way of writing 'stripextension' as a straight perl script) In short, there *is* a bug in the regex (for the case where the filename has no extension), but the original bug here is to do with how the Exec line is being parsed. -- servicemenue convert images has problems with dots in pathnames https://bugs.launchpad.net/bugs/113789 You received this bug notification because you are a member of Kubuntu Team, which is subscribed to kdeaddons in ubuntu. -- kubuntu-bugs mailing list [EMAIL PROTECTED] https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
