summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-27 13:20:02 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-27 13:20:02 +0000
commite3cc29df21c71c624996b20299c8a4139f445692 (patch)
treee05312df52c2be81377d1237cc9b882ccb951b5a /perl-install/network
parent886c5748870cad340a4f512a2bd5553cd31ec771 (diff)
downloaddrakx-backup-do-not-use-e3cc29df21c71c624996b20299c8a4139f445692.tar
drakx-backup-do-not-use-e3cc29df21c71c624996b20299c8a4139f445692.tar.gz
drakx-backup-do-not-use-e3cc29df21c71c624996b20299c8a4139f445692.tar.bz2
drakx-backup-do-not-use-e3cc29df21c71c624996b20299c8a4139f445692.tar.xz
drakx-backup-do-not-use-e3cc29df21c71c624996b20299c8a4139f445692.zip
(bg_command_as_root) use kdesu in kde
Diffstat (limited to 'perl-install/network')
-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 {