From 0546ef7cafa0fa5e11a3f9e76854e42f5676c915 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 5 Oct 2011 19:45:21 +0200 Subject: api.apps: fix bug with undefined apps --- ranger/api/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/api/apps.py b/ranger/api/apps.py index dc4918d8..f1fcba62 100644 --- a/ranger/api/apps.py +++ b/ranger/api/apps.py @@ -100,7 +100,7 @@ class Applications(FileManagerAware): handler = getattr(self, 'app_' + app) except AttributeError: if app in get_executables(): - return _generic_app(app, context) + return [app] + list(context) handler = self.app_default arguments = handler(context) # flatten -- cgit 1.4.1-2-gfad0