summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/network/tools.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index a16b89e76..3410d2250 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -84,7 +84,12 @@ sub disconnect_backend {
sub bg_command_as_root {
my ($name, @args) = @_;
- run_program::raw({ detach => 1 }, [ 'consolehelper', $name ], @args);
+ #- FIXME: duplicate code from common::require_root_capability
+ if (check_for_xserver() && fuzzy_pidofs(qr/\bkwin\b/) > 0) {
+ run_program::raw({ detach => 1 }, "kdesu", "--ignorebutton", "-c", "$name @args");
+ } else {
+ run_program::raw({ detach => 1 }, [ 'consolehelper', $name ], @args);
+ }
}
sub start_interface {