diff options
author | M Rawash <mrawash@gmail.com> | 2011-12-07 00:39:41 +0200 |
---|---|---|
committer | M Rawash <mrawash@gmail.com> | 2011-12-07 00:41:05 +0200 |
commit | f206876a66deb57eb27058c35e69c411e5171f01 (patch) | |
tree | 12a958b848e26ace769bcea4abd6ff2ee3282fd1 /ranger | |
parent | 4038295758a9786c7f88405f330d2264b912b059 (diff) | |
download | ranger-f206876a66deb57eb27058c35e69c411e5171f01.tar.gz |
core/runner.py: got rid of the 'a' flag
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/runner.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index cf7b7b41..7d433652 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -30,7 +30,6 @@ d: detach the process. p: redirect output to the pager c: run only the current file (not handled here) w: wait for enter-press afterwards -a: use alternative application r: run application with root privilege (requires sudo) t: run application in a new terminal window (An uppercase key negates the respective lower case flag) @@ -123,7 +122,7 @@ class Runner(object): def __call__(self, action=None, try_app_first=False, app='default', files=None, mode=0, - flags='', alt=None, wait=True, **popen_kws): + flags='', wait=True, **popen_kws): """ Run the application in the way specified by the options. @@ -138,7 +137,7 @@ class Runner(object): # an Application object. context = Context(app=app, files=files, mode=mode, fm=self.fm, - flags=flags, alt=alt, wait=wait, popen_kws=popen_kws, + flags=flags, wait=wait, popen_kws=popen_kws, file=files and files[0] or None) if self.apps: @@ -192,12 +191,6 @@ class Runner(object): if 'w' in context.flags: if not pipe_output and context.wait: # <-- sanity check wait_for_enter = True - if 'a' in context.flags and context.alt: - if isinstance(action, str): - import re - action = re.sub('\w+', context.alt, action) - else: - action[0] = context.alt if 'r' in context.flags: if 'sudo' not in get_executables(): return self._log("Can not run with 'r' flag, sudo is not installed!") |