summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 (!$@) {