Skip to content

Commit

Permalink
Merge branch 'fix-popen-shell' of https://github.com/amerlyq/ranger
Browse files Browse the repository at this point in the history
  • Loading branch information
hut committed Dec 5, 2014
2 parents 3db1997 + 25dcff6 commit 5dd2891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ranger/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def __call__(self, action=None, try_app_first=False,

if 'shell' not in popen_kws:
popen_kws['shell'] = isinstance(action, str)
if popen_kws['shell']:
# Set default shell for Popen
popen_kws['executable'] = os.environ['SHELL']

if 'stdout' not in popen_kws:
popen_kws['stdout'] = sys.stdout
if 'stderr' not in popen_kws:
Expand Down

0 comments on commit 5dd2891

Please sign in to comment.