diff options
Diffstat (limited to 'scripts/mana')
-rwxr-xr-x | scripts/mana | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mana b/scripts/mana index c8d1d2e..c436fc7 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); |