diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-01-13 17:38:07 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-01-13 17:38:07 +0100 |
commit | 46d7da76b113952563db803c003968cde1f9bf72 (patch) | |
tree | bbede85fbbf980643c68bbd704abbdd8a6c6157a /scripts | |
parent | c6f4d2b5955f928e3d436d031ccd2ccaccacf383 (diff) | |
download | manatools-46d7da76b113952563db803c003968cde1f9bf72.tar manatools-46d7da76b113952563db803c003968cde1f9bf72.tar.gz manatools-46d7da76b113952563db803c003968cde1f9bf72.tar.bz2 manatools-46d7da76b113952563db803c003968cde1f9bf72.tar.xz manatools-46d7da76b113952563db803c003968cde1f9bf72.zip |
Managed new flag dbus_auth_interactive to to work in user space (thanks Colin)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mana | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mana b/scripts/mana index c8d1d2ed..c436fc7e 100755 --- a/scripts/mana +++ b/scripts/mana @@ -37,6 +37,7 @@ my %modules = ( service => { exec => '/usr/bin/manaservice', descr => "manaservice: service manager", + user_mode => 1, }, dm => { exec => '/usr/bin/manadm', @@ -85,7 +86,7 @@ my $mod = $modules{$cmd}->{exec}; shift(@ARGV); eval { - if(is_root_capability_required()) { + if(!$modules{$cmd}->{user_mode} && is_root_capability_required()) { system("/usr/bin/pkexec", $mod, @ARGV); } else { system($mod, @ARGV); |