fix: handle cases when os.environ['DISPLAY'] is unset