dictation-toolbox / dragonfly

Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS), Windows Speech Recognition (WSR), Kaldi and CMU Pocket Sphinx
GNU Lesser General Public License v3.0
388 stars 75 forks source link

X Window System (X11) detection is unreliable #362

Closed drmfinlay closed 2 years ago

drmfinlay commented 3 years ago

According to the X(7) manual page, the DISPLAY variable, used to store the X server's display name, is the only mandatory environment variable. Therefore, this is the one we should be checking for in Dragonfly instead of XDG_SESSION_TYPE, which we've had trouble with in the past.