diff --git a/workspace.cpp b/workspace.cpp index 0a9971a131..ae28884864 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -3550,11 +3550,12 @@ void Workspace::restoreLegacySession( KConfig* config ) QCString wmCommand = config->readEntry( QString("command")+n ).latin1(); QCString wmClientMachine = config->readEntry( QString("clientMachine")+n ).latin1(); if ( !wmCommand.isEmpty() && !wmClientMachine.isEmpty() ) { - KShellProcess proc; + KProcess proc; + proc.setUseShell(true); if ( wmClientMachine != "localhost" ) proc << "xon" << wmClientMachine; proc << QString::fromLatin1( wmCommand ); - proc.start(KShellProcess::DontCare); + proc.start(KProcess::DontCare); } } }