summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-02-21 16:26:02 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-02-21 16:26:02 +0000
commit9b45bbd74291ccf6aa2c73703fa27fc4bece96ea (patch)
treed93efb5209dd4bce8173e4a4c90f23c26ae31dea /perl-install/interactive.pm
parent8ef3551c885717d243aae49b49f7e6a279f5cfe8 (diff)
downloaddrakx-backup-do-not-use-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar
drakx-backup-do-not-use-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar.gz
drakx-backup-do-not-use-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar.bz2
drakx-backup-do-not-use-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.tar.xz
drakx-backup-do-not-use-9b45bbd74291ccf6aa2c73703fa27fc4bece96ea.zip
use consolehelper when no "kdeinit: kwin" process
is running
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r--perl-install/interactive.pm6
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 (!$@) {