aboutsummaryrefslogtreecommitdiff
path: root/x11/kdebase4-workspace/files/patch-ksystraycmd-quoting.diff
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdebase4-workspace/files/patch-ksystraycmd-quoting.diff')
-rw-r--r--x11/kdebase4-workspace/files/patch-ksystraycmd-quoting.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11/kdebase4-workspace/files/patch-ksystraycmd-quoting.diff b/x11/kdebase4-workspace/files/patch-ksystraycmd-quoting.diff
new file mode 100644
index 000000000000..8543f7254a95
--- /dev/null
+++ b/x11/kdebase4-workspace/files/patch-ksystraycmd-quoting.diff
@@ -0,0 +1,19 @@
+--- ksystraycmd/main.cpp (revision 572102)
++++ ksystraycmd/main.cpp (revision 572103)
+@@ -5,6 +5,7 @@
+ #include <kcmdlineargs.h>
+ #include <kdebug.h>
+ #include <klocale.h>
++#include <kprocess.h>
+
+ #include "ksystraycmd.h"
+
+@@ -94,7 +95,7 @@ int main( int argc, char *argv[] )
+ // Read the command
+ QString command;
+ for ( int i = 0; i < args->count(); i++ )
+- command += QCString( args->arg(i) ) + " ";
++ command += KProcess::quote(QString::fromLocal8Bit( args->arg(i) )) + " ";
+ if ( !command.isEmpty() )
+ cmd.setCommand( command );
+