summary refs log tree commit diff stats
path: root/ranger/core/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/runner.py')
-rw-r--r--ranger/core/runner.py11
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!")