diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-02-21 16:26:02 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-02-21 16:26:02 +0000 |
commit | 9b45bbd74291ccf6aa2c73703fa27fc4bece96ea (patch) | |
tree | d93efb5209dd4bce8173e4a4c90f23c26ae31dea | |
parent | 8ef3551c885717d243aae49b49f7e6a279f5cfe8 (diff) | |
download | drakx-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar drakx-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar.gz drakx-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar.bz2 drakx-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar.xz drakx-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.zip |
use consolehelper when no "kdeinit: kwin" process
is running
-rw-r--r-- | perl-install/interactive.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 6cf45ed24..b0b313073 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -83,7 +83,11 @@ sub vnew { } if ($ENV{DISPLAY} && system('/usr/X11R6/bin/xtest') == 0) { if ($su && $>) { - exec("kdesu", "-c", "$0 @ARGV") or die _("kdesu missing"); + if (`/sbin/pidof "kdeinit: kwin"` > 0) { + exec("kdesu", "-c", "$0 @ARGV") or die _("kdesu missing"); + } else { + exec {'consolehelper'} $0, @ARGV or die _("consolehelper missing"); + } } eval { require interactive_gtk }; if (!$@) { |