_is_xfce() crashes with Python 3
akdor1154 opened this issue · comments
on line 138 of HighlightLib/desktop/init.py,
return _readfrom(_get_x11_vars() + "xprop -root _DT_SAVE_MODE", shell=1).strip().endswith(' = "xfce4"')
should perhaps be
return _readfrom(_get_x11_vars() + "xprop -root _DT_SAVE_MODE", shell=1).decode(errors="ignore").strip().endswith(' = "xfce4"')
:)
If that patch works for you, would you mind creating a PR?
PR #61 fixes this for me and is a cleaner solution in my eyes.
Fixed by #61.