From 489c2506cd2fd51efa7b167248a378d07923abfe Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Thu, 21 Nov 2013 18:52:13 +0000 Subject: polkit: Fix support for several third party net management commands (mga#11286) --- bin/net_applet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/net_applet') diff --git a/bin/net_applet b/bin/net_applet index a722c28..7f36960 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -192,7 +192,7 @@ my %actions = ( launch => sub { require run_program; $net->{PROFILE} = $_[0]; - run_program::raw({ detach => 1 }, common::wrap_command_for_root('/sbin/set-netprofile', $net->{PROFILE})); + run_program::raw({ detach => 1 }, (if_($>, '/usr/bin/pkexec'), '/usr/sbin/set-netprofile', $net->{PROFILE})); } }, 'chooseVPN' => { -- cgit v1.2.1