summaryrefslogtreecommitdiffstats
path: root/wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper')
-rw-r--r--wrapper3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrapper b/wrapper
index 522d4e12..7728450e 100644
--- a/wrapper
+++ b/wrapper
@@ -22,8 +22,9 @@
# - prevent bad gtk bugs if one launch it from the cli and suspend itt
# - having less overhead for launching drakxconf if cli version must be used
+use common;
-if (!$ENV{DISPLAY} || system('/usr/X11R6/bin/xtest')) {
+if (check_for_xserver()) {
exec ("/usr/sbin/drakxconf; reset");
} else {
unless (my $pid = fork) {