summaryrefslogtreecommitdiffstats
path: root/klaptopdaemon
diff options
context:
space:
mode:
Diffstat (limited to 'klaptopdaemon')
-rw-r--r--klaptopdaemon/acpi.cpp2
-rw-r--r--klaptopdaemon/apm.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/klaptopdaemon/acpi.cpp b/klaptopdaemon/acpi.cpp
index cd8f4b0..4dfb247 100644
--- a/klaptopdaemon/acpi.cpp
+++ b/klaptopdaemon/acpi.cpp
@@ -178,7 +178,7 @@ void AcpiConfig::setupHelper()
proc << tdesu;
proc << "-u";
proc << "root";
- proc << "dpkg-statoverride --update --add root root 6755 "+helper;
+ proc << "chown root "+helper+"; chmod +s "+helper;
proc.start(KProcess::Block); // run it sync so has_acpi below sees the results
}
} else {
diff --git a/klaptopdaemon/apm.cpp b/klaptopdaemon/apm.cpp
index e348943..9de0c85 100644
--- a/klaptopdaemon/apm.cpp
+++ b/klaptopdaemon/apm.cpp
@@ -166,7 +166,7 @@ void ApmConfig::setupHelper()
proc << tdesu;
proc << "-u";
proc << "root";
- proc << TQString("dpkg-statoverride --update --add root root 6755 ")+apm_name;
+ proc << TQString("chown root ")+apm_name+TQString("; chmod +s ")+apm_name;
proc.start(KProcess::Block); // run it sync so has_apm below sees the results
}
} else {
@@ -200,7 +200,7 @@ void ApmConfig::setupHelper2() // we use the acpi helper to do software suspend
proc << tdesu;
proc << "-u";
proc << "root";
- proc << "dpkg-statoverride --update --add root root 6755 "+helper;
+ proc << "chown root "+helper+"; chmod +s "+helper;
proc.start(KProcess::Block); // run it sync so has_acpi below sees the results
}
} else {