|
Lines 64-70
Link Here
|
| 64 |
{ "r", I18N_NOOP("Use realtime scheduling"), 0 }, |
64 |
{ "r", I18N_NOOP("Use realtime scheduling"), 0 }, |
| 65 |
{ "nonewdcop", I18N_NOOP("Let command use existing dcopserver"), 0 }, |
65 |
{ "nonewdcop", I18N_NOOP("Let command use existing dcopserver"), 0 }, |
| 66 |
{ "comment <comment>", I18N_NOOP("Ignored"), "" }, |
66 |
{ "comment <comment>", I18N_NOOP("Ignored"), "" }, |
| 67 |
{ "noignorebutton", I18N_NOOP("Do not display ignore button"), 0 }, |
|
|
| 68 |
{ "i <icon name>", I18N_NOOP("Specify icon to use in the password dialog"), 0}, |
67 |
{ "i <icon name>", I18N_NOOP("Specify icon to use in the password dialog"), 0}, |
| 69 |
{ "d", I18N_NOOP("Do not show the command to be run in the dialog"), 0}, |
68 |
{ "d", I18N_NOOP("Do not show the command to be run in the dialog"), 0}, |
| 70 |
TDECmdLineLastOption |
69 |
TDECmdLineLastOption |
|
Lines 268-274
Link Here
|
| 268 |
bool keep = !args->isSet("n") && have_daemon; |
267 |
bool keep = !args->isSet("n") && have_daemon; |
| 269 |
bool terminal = args->isSet("t"); |
268 |
bool terminal = args->isSet("t"); |
| 270 |
bool new_dcop = args->isSet("newdcop"); |
269 |
bool new_dcop = args->isSet("newdcop"); |
| 271 |
bool withIgnoreButton = args->isSet("ignorebutton"); |
|
|
| 272 |
|
270 |
|
| 273 |
QCStringList env; |
271 |
QCStringList env; |
| 274 |
TQCString options; |
272 |
TQCString options; |
|
Lines 352-358
Link Here
|
| 352 |
TDEStartupInfoData data; |
350 |
TDEStartupInfoData data; |
| 353 |
data.setSilent( TDEStartupInfoData::Yes ); |
351 |
data.setSilent( TDEStartupInfoData::Yes ); |
| 354 |
TDEStartupInfo::sendChange( id, data ); |
352 |
TDEStartupInfo::sendChange( id, data ); |
| 355 |
KDEsuDialog dlg(user, auth_user, keep && !terminal,icon, withIgnoreButton, timeout); |
353 |
TDEsuDialog dlg(user, auth_user, keep && !terminal,icon, timeout); |
| 356 |
if (prompt) |
354 |
if (prompt) |
| 357 |
dlg.addLine(i18n("Command:"), command); |
355 |
dlg.addLine(i18n("Command:"), command); |
| 358 |
if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) |
356 |
if ((priority != 50) || (scheduler != SuProcess::SchedNormal)) |
|
Lines 365-376
Link Here
|
| 365 |
dlg.addLine(i18n("Priority:"), prio); |
363 |
dlg.addLine(i18n("Priority:"), prio); |
| 366 |
} |
364 |
} |
| 367 |
int ret = dlg.exec(); |
365 |
int ret = dlg.exec(); |
| 368 |
if (ret == KDEsuDialog::Rejected) |
366 |
if (ret == TDEsuDialog::Rejected) |
| 369 |
{ |
367 |
{ |
| 370 |
TDEStartupInfo::sendFinish( id ); |
368 |
TDEStartupInfo::sendFinish( id ); |
| 371 |
exit(0); |
369 |
exit(0); |
| 372 |
} |
370 |
} |
| 373 |
if (ret == KDEsuDialog::AsUser) |
371 |
if (ret == TDEsuDialog::AsUser) |
| 374 |
change_uid = false; |
372 |
change_uid = false; |
| 375 |
password = dlg.password(); |
373 |
password = dlg.password(); |
| 376 |
keep = dlg.keep(); |
374 |
keep = dlg.keep(); |