summaryrefslogtreecommitdiffstats
path: root/bin/drakproxy
diff options
context:
space:
mode:
Diffstat (limited to 'bin/drakproxy')
-rwxr-xr-xbin/drakproxy4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/drakproxy b/bin/drakproxy
index 6c52022..2c6b1fe 100755
--- a/bin/drakproxy
+++ b/bin/drakproxy
@@ -28,9 +28,11 @@ use network::network;
use any;
use common;
+require_root_capability();
+
$ugtk2::wm_icon = "/usr/share/mcc/themes/default/drakproxy-mdk.png";
my $u = { getVarsFromSh('/etc/profile.d/proxy.sh') };
-my $in = 'interactive'->vnew('su');
+my $in = 'interactive'->vnew;
if (network::network::miscellaneous_choose($in, $u)) {
network::network::proxy_configure($u);
any::ask_for_X_restart($in);