From ec7c0926cc98fa3adb0d70bd82404b52b46d0da4 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 7 Oct 2013 11:40:13 +0100 Subject: Convert to polkit from usermode consolehelper for gaining root privileges polkit is better integrated into various environments, both console and GUI and offers better access rules and prevents the internal need to run su which is prone to errors and doesn't offer an environment integrated prompt to the user. In this case the current package policy (in rpm spec) has been migrated here and is as follows: drak3d requires authentication as the current user. mga#11125 --- bin/drak3d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/drak3d b/bin/drak3d index 14abbe0..0f2b3d4 100755 --- a/bin/drak3d +++ b/bin/drak3d @@ -32,10 +32,12 @@ use Xconfig::glx; use any; use Getopt::Long; -my $in = eval { interactive->vnew('su') }; +my $in = eval { interactive->vnew }; $in || $::auto or die $@; my $do_pkgs = $in ? $in->do_pkgs : do_pkgs_standalone->new; +require_root_capability(); + sub exit_program { $in ? $in->exit(@_) : exit(@_) } my $glx = Xconfig::glx::detect_may_install($do_pkgs) or exit_program(); -- cgit v1.2.1