|
Lines 140-146
Link Here
|
| 140 |
// Stop daemon and exit? |
140 |
// Stop daemon and exit? |
| 141 |
if (args->isSet("s")) |
141 |
if (args->isSet("s")) |
| 142 |
{ |
142 |
{ |
| 143 |
KDEsuClient client; |
143 |
TDEsuClient client; |
| 144 |
if (client.ping() == -1) |
144 |
if (client.ping() == -1) |
| 145 |
{ |
145 |
{ |
| 146 |
kdError(1206) << "Daemon not running -- nothing to stop\n"; |
146 |
kdError(1206) << "Daemon not running -- nothing to stop\n"; |
|
Lines 247-253
Link Here
|
| 247 |
// Check for daemon and start if necessary |
247 |
// Check for daemon and start if necessary |
| 248 |
bool just_started = false; |
248 |
bool just_started = false; |
| 249 |
bool have_daemon = true; |
249 |
bool have_daemon = true; |
| 250 |
KDEsuClient client; |
250 |
TDEsuClient client; |
| 251 |
if (!client.isServerSGID()) |
251 |
if (!client.isServerSGID()) |
| 252 |
{ |
252 |
{ |
| 253 |
kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n"; |
253 |
kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n"; |
|
Lines 350-356
Link Here
|
| 350 |
TDEStartupInfoData data; |
350 |
TDEStartupInfoData data; |
| 351 |
data.setSilent( TDEStartupInfoData::Yes ); |
351 |
data.setSilent( TDEStartupInfoData::Yes ); |
| 352 |
TDEStartupInfo::sendChange( id, data ); |
352 |
TDEStartupInfo::sendChange( id, data ); |
| 353 |
KDEsuDialog dlg(user, auth_user, keep && !terminal,icon, timeout); |
353 |
TDEsuDialog dlg(user, auth_user, keep && !terminal,icon, timeout); |
| 354 |
if (prompt) |
354 |
if (prompt) |
| 355 |
dlg.addLine(i18n("Command:"), command); |
355 |
dlg.addLine(i18n("Command:"), command); |
| 356 |
if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) |
356 |
if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) |
|
Lines 363-374
Link Here
|
| 363 |
dlg.addLine(i18n("Priority:"), prio); |
363 |
dlg.addLine(i18n("Priority:"), prio); |
| 364 |
} |
364 |
} |
| 365 |
int ret = dlg.exec(); |
365 |
int ret = dlg.exec(); |
| 366 |
if (ret == KDEsuDialog::Rejected) |
366 |
if (ret == TDEsuDialog::Rejected) |
| 367 |
{ |
367 |
{ |
| 368 |
TDEStartupInfo::sendFinish( id ); |
368 |
TDEStartupInfo::sendFinish( id ); |
| 369 |
exit(0); |
369 |
exit(0); |
| 370 |
} |
370 |
} |
| 371 |
if (ret == KDEsuDialog::AsUser) |
371 |
if (ret == TDEsuDialog::AsUser) |
| 372 |
change_uid = false; |
372 |
change_uid = false; |
| 373 |
password = dlg.password(); |
373 |
password = dlg.password(); |
| 374 |
keep = dlg.keep(); |
374 |
keep = dlg.keep(); |