You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Index: tdeprint/cups/cupsdconf2/cupsddialog.cpp
|
|
|
|
===================================================================
|
|
|
|
--- tdeprint/cups/cupsdconf2/cupsddialog.cpp.orig
|
|
|
|
+++ tdeprint/cups/cupsdconf2/cupsddialog.cpp
|
|
|
|
@@ -208,7 +208,10 @@
|
|
|
|
{
|
|
|
|
bool success = false;
|
|
|
|
KProcess proc;
|
|
|
|
- proc << "tdesu" << "-c" << "/etc/init.d/cupsys restart";
|
|
|
|
+ if (getuid() == 0 )
|
|
|
|
+ proc << "rccups" << "force-reload";
|
|
|
|
+ else
|
|
|
|
+ proc << "tdesu" << "-c" << "rccups" << "force-reload";
|
|
|
|
success = proc.start( KProcess::Block ) && proc.normalExit();
|
|
|
|
if( !success )
|
|
|
|
msg = i18n("Unable to restart CUPS server (pid = %1)").arg(serverPid);
|