|
|
|
@ -84,20 +84,18 @@ int main(int argc, char **argv)
|
|
|
|
|
|
|
|
|
|
bool withIgnoreButton = args->isSet("ignorebutton");
|
|
|
|
|
|
|
|
|
|
if (args->isSet("c"))
|
|
|
|
|
if (args->isSet("c")) {
|
|
|
|
|
executable = args->getOption("c");
|
|
|
|
|
|
|
|
|
|
if (args->count())
|
|
|
|
|
{
|
|
|
|
|
if (executable.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
if (args->count()) {
|
|
|
|
|
command = args->arg(0);
|
|
|
|
|
commandlist = TQStringList::split(TQChar(' '), command);
|
|
|
|
|
executable = commandlist[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((!args->isSet("c")) && (!args->count())) {
|
|
|
|
|
if (executable.stripWhiteSpace().isEmpty()) {
|
|
|
|
|
kdError() << I18N_NOOP("You must provide the name of the executable you want to run as an argument to tdesudo") << endl;
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|