mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdesudo: increase the wait times in KDESu::KDESuPrivate::KCookie constructor to 3secs
100ms is not a whole lot with kernel scheduling, if the process is ready to read in less than 3secs the waiting will stop anyway Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
63c440a6d3
commit
ac0c225fe8
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ namespace KDESu
|
|||
kError() << "Could not run xauth.\n";
|
||||
return;
|
||||
}
|
||||
proc.waitForReadyRead(100);
|
||||
proc.waitForReadyRead(3000);
|
||||
QByteArray output = proc.readLine().simplified();
|
||||
if (output.isEmpty()) {
|
||||
kWarning() << "No X authentication info set for display " << m_Display;
|
||||
|
@ -56,7 +56,7 @@ namespace KDESu
|
|||
return;
|
||||
}
|
||||
m_DisplayAuth = (lst[1] + ' ' + lst[2]);
|
||||
proc.waitForFinished(100); // give QProcess a chance to clean up gracefully
|
||||
proc.waitForFinished(3000); // give QProcess a chance to clean up gracefully
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue