summaryrefslogtreecommitdiffstats
path: root/wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper')
-rw-r--r--wrapper10
1 files changed, 3 insertions, 7 deletions
diff --git a/wrapper b/wrapper
index 8fda9f2f..56627542 100644
--- a/wrapper
+++ b/wrapper
@@ -27,12 +27,8 @@
use lib qw(/usr/lib/libDrakX);
use common;
-if (!check_for_xserver()) {
- exec ("/usr/sbin/drakxconf @ARGV; reset");
+if (check_for_xserver()) {
+ exec ("/usr/bin/pkexec", "/usr/libexec/drakconf", @ARGV);
} else {
- unless (my $pid = fork) {
- print "cannot fork\n" unless defined $pid;
- exec ("/usr/sbin/drakconf.real", @ARGV);
- }
-
+ exec ("/usr/bin/pkexec", "/usr/libexec/drakxconf", @ARGV);
}