Commit 97f476e1 authored by Jameson Rollins's avatar Jameson Rollins

fix check_output call for text mode

parent 99e9e7b9
......@@ -282,7 +282,10 @@ def edit_system(args):
xdg_share = [os.getenv('XDG_DATA_HOME', os.path.expanduser('~/.local/share'))] \
+ os.getenv('XDG_DATA_DIRS', '/usr/local/share:/usr/share').split(':')
# get desktop handler for mimetype
desktop = subprocess.check_output(['xdg-mime', 'query', 'default', mimetype]).strip()
desktop = subprocess.check_output(
['xdg-mime', 'query', 'default', mimetype],
# look for desktop file
if desktop:
for d in xdg_share:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment