n1k0 / SublimeHighlight

A humble SublimeText package for exporting highlighted code as RTF or HTML

Home Page:https://github.com/n1k0/SublimeHighlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_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.