summaryrefslogtreecommitdiffstats
path: root/wrapper
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-29 09:52:02 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-29 09:52:02 +0000
commit5ecc27b1de408463eb9f583bebac9aadacdf0339 (patch)
tree04589f9fc2027ce235bb3b280983783a46f35dbe /wrapper
parentdc535136ebd5b2f613b975d88032dce72bd54ba6 (diff)
downloadcontrol-center-5ecc27b1de408463eb9f583bebac9aadacdf0339.tar
control-center-5ecc27b1de408463eb9f583bebac9aadacdf0339.tar.gz
control-center-5ecc27b1de408463eb9f583bebac9aadacdf0339.tar.bz2
control-center-5ecc27b1de408463eb9f583bebac9aadacdf0339.tar.xz
control-center-5ecc27b1de408463eb9f583bebac9aadacdf0339.zip
use new system
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) {