From 5914f94019450c530f7e4aeba7f4972345a48e4e Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 19 May 2010 23:06:11 +0200 Subject: api.apps: give Applications.generic less precedence than manual app definitions --- ranger/api/apps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/api/apps.py b/ranger/api/apps.py index d2e9ac4f..91aae357 100644 --- a/ranger/api/apps.py +++ b/ranger/api/apps.py @@ -121,7 +121,8 @@ class Applications(FileManagerAware): flags = 'flags' in keywords and keywords['flags'] or "" for name in args: assert isinstance(name, str) - setattr(cls, "app_" + name, _generic_wrapper(name, flags=flags)) + if not hasattr(cls, "app_" + name): + setattr(cls, "app_" + name, _generic_wrapper(name, flags=flags)) def tup(*args): -- cgit 1.4.1-2-gfad0