--- ksystraycmd/main.cpp (revision 572102) +++ ksystraycmd/main.cpp (revision 572103) @@ -5,6 +5,7 @@ #include #include #include +#include #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 );