mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
libs: pass the port number to ksysguardd from KSGRD::SensorShellAgent::start()
why was it not passed? also the process of starting ksysguardd could fail but true was returned anyway.. Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f197d7272c
commit
45a460a671
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ SensorShellAgent::~SensorShellAgent()
|
|||
}
|
||||
|
||||
bool SensorShellAgent::start( const QString &host, const QString &shell,
|
||||
const QString &command, int )
|
||||
const QString &command, int port)
|
||||
{
|
||||
mDaemon = new QProcess();
|
||||
mDaemon->setProcessChannelMode( QProcess::SeparateChannels );
|
||||
|
@ -71,12 +71,12 @@ bool SensorShellAgent::start( const QString &host, const QString &shell,
|
|||
QString program = args.takeAt(0);
|
||||
mDaemon->start(program, args);
|
||||
} else {
|
||||
mArgs = mShell + " " + hostName() + " ksysguardd";
|
||||
mArgs = mShell + " " + hostName() + " ksysguardd -p" + port;
|
||||
mDaemon->start(mShell, QStringList() << hostName() << "ksysguardd");
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
return mDaemon->waitForStarted();
|
||||
}
|
||||
|
||||
void SensorShellAgent::hostInfo( QString &shell, QString &command,
|
||||
|
|
Loading…
Add table
Reference in a new issue