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:
Ivailo Monev 2023-08-28 23:34:09 +03:00
parent 63c440a6d3
commit ac0c225fe8

View file

@ -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
}