KShellProcess -> KProcess + setUseShell(true)

svn path=/trunk/kdebase/kdm/; revision=163814
This commit is contained in:
Gioele Barabucci 2002-06-29 15:05:20 +00:00
parent 062d32c85a
commit 9f0f7accc6

View file

@ -3550,11 +3550,12 @@ void Workspace::restoreLegacySession( KConfig* config )
QCString wmCommand = config->readEntry( QString("command")+n ).latin1(); QCString wmCommand = config->readEntry( QString("command")+n ).latin1();
QCString wmClientMachine = config->readEntry( QString("clientMachine")+n ).latin1(); QCString wmClientMachine = config->readEntry( QString("clientMachine")+n ).latin1();
if ( !wmCommand.isEmpty() && !wmClientMachine.isEmpty() ) { if ( !wmCommand.isEmpty() && !wmClientMachine.isEmpty() ) {
KShellProcess proc; KProcess proc;
proc.setUseShell(true);
if ( wmClientMachine != "localhost" ) if ( wmClientMachine != "localhost" )
proc << "xon" << wmClientMachine; proc << "xon" << wmClientMachine;
proc << QString::fromLatin1( wmCommand ); proc << QString::fromLatin1( wmCommand );
proc.start(KShellProcess::DontCare); proc.start(KProcess::DontCare);
} }
} }
} }