[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/libs/ksysguard/processui
From: John Tapsell <john.tapsell () kdemail ! net>
Date: 2008-08-18 17:40:29
Message-ID: 1219081229.239102.22280.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 848909 by johnflux:
Connect the kdesu dialog to ksysguard. This fixes the problem of the kdesu dialog \
appearing behind ksysguard when ksysguard is set to Always On Top
BUG:168833
M +6 -1 ksysguardprocesslist.cpp
--- trunk/KDE/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.cpp \
#848908:848909 @@ -711,13 +711,14 @@
if(!d->mModel.isLocalhost()) return false; //We can't use kdesu to renice \
non-localhost processes
QStringList arguments;
+ arguments << "--embed" << QString::number(window()->winId()) << "--noignorebutton";
arguments << "--" << "renice" << QString::number(niceValue);
for (int i = 0; i < unreniced_pids.size(); ++i) {
arguments << QString::number(unreniced_pids.at(i));
}
- QString su = KStandardDirs::findExe("kdesu");
+ QString su = KStandardDirs::findExe("kdesu"); //kdesu is a libexec program, so it \
will not be in the path. findExe will find it correctly anyway if(su.isEmpty()) \
return false; //Cannot find kdesu
QProcess *reniceProcess = new QProcess(NULL);
@@ -865,6 +866,7 @@
//We must use kdesu to kill the process
QStringList arguments;
+ arguments << "--embed" << QString::number(window()->winId()) << "--noignorebutton";
if(unchanged_pids.size() == 1) {
arguments << "--" << "ionice" << "-p" << QString::number(unchanged_pids.at(0)) << \
"-c"; switch(newIoSched) {
@@ -946,6 +948,7 @@
//We must use kdesu to kill the process
QStringList arguments;
+ arguments << "--embed" << QString::number(window()->winId()) << "--noignorebutton";
if(unchanged_pids.size() == 1) {
arguments << "--" << setscheduler << QString::number(unchanged_pids.at(0)) << \
QString::number((int)newCpuSched) << QString::number(newCpuSchedPriority); } else {
@@ -984,8 +987,10 @@
QString su = KStandardDirs::findExe("kdesu");
if(su.isEmpty()) return false; //Cannot find kdesu
+ kDebug() << "running " << su;
//We must use kdesu to kill the process
QStringList arguments;
+ arguments << "--embed" << QString::number(window()->winId()) << "--noignorebutton";
arguments << "--" << "kill";
if(sig != SIGTERM) {
arguments << ('-' + QString::number(sig));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic