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