summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-08-04 12:08:26 +0200
committerGitHub <noreply@github.com>2018-08-04 12:08:26 +0200
commitbb277d1eff052e2478fb8c132bc42793ce91b870 (patch)
treeacebc3128a06e6495cf5e25edd36ab58f93f701e /ranger
parentec8f343e9b32e9168c45fff39c6afa1407a18e06 (diff)
parent3eeb239ec394d0f17656bbf2ec0ea6c9d33a05dd (diff)
downloadranger-bb277d1eff052e2478fb8c132bc42793ce91b870.tar.gz
Merge pull request #1238 from Enzime/fix/run-as-root-on-macos
Fix run as root on macOS
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index 672b0597..07a76488 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -357,7 +357,7 @@ class Rifle(object):  # pylint: disable=too-many-instance-attributes
             self.hook_before_executing(command, self._mimetype, self._app_flags)
             try:
                 if 'r' in flags:
-                    prefix = ['sudo', '-E', 'su', '-mc']
+                    prefix = ['sudo', '-E', 'su', 'root', '-mc']
                 else:
                     prefix = ['/bin/sh', '-c']