diff options
author | Joe Rice <joe-rice@users.noreply.github.com> | 2019-10-14 11:55:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-14 11:55:44 -0400 |
commit | 4830095c4b00515082cbe2369804c40a5ef6e932 (patch) | |
tree | cfcc3e14c6ae748809708248546cb0c2f79c7a2c /ranger | |
parent | dafcebf172d761e813308f72bee0f502550b130f (diff) | |
parent | f1e36c0798e6864cebff5b2fe784b7fbd74387d1 (diff) | |
download | ranger-4830095c4b00515082cbe2369804c40a5ef6e932.tar.gz |
Merge branch 'master' into image-displayer-registry
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/runner.py | 4 | ||||
-rwxr-xr-x | ranger/ext/rifle.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index efb307da..d465f070 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -214,7 +214,9 @@ class Runner(object): # pylint: disable=too-few-public-methods toggle_ui = True context.wait = True if 't' in context.flags: - if not ('WAYLAND_DISPLAY' in os.environ or sys.platform == 'darwin' or 'DISPLAY' in os.environ): + if not ('WAYLAND_DISPLAY' in os.environ + or sys.platform == 'darwin' + or 'DISPLAY' in os.environ): return self._log("Can not run with 't' flag, no display found!") term = get_term() if isinstance(action, str): diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index cdf0d729..360e6a48 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -237,7 +237,9 @@ class Rifle(object): # pylint: disable=too-many-instance-attributes self._app_flags = argument return True elif function == 'X': - return 'WAYLAND_DISPLAY' in os.environ or sys.platform == 'darwin' or 'DISPLAY' in os.environ + return ('WAYLAND_DISPLAY' in os.environ + or sys.platform == 'darwin' + or 'DISPLAY' in os.environ) elif function == 'env': return bool(os.environ.get(argument)) elif function == 'else': |