summaryrefslogtreecommitdiffstats
path: root/bin/drak3d
diff options
context:
space:
mode:
Diffstat (limited to 'bin/drak3d')
-rwxr-xr-xbin/drak3d4
1 files changed, 3 insertions, 1 deletions
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();