()
return 'X11'
Try to detect which display manager we run under
Try to detect which display manager we run under
Try to detect which display manager we run under
def display_manager():
    """Try to detect which display manager we run under"""
    if os.environ.get('WAYLAND_DISPLAY'):
        return 'WAYLAND'
    # Fallback assumption of X11
    return 'X11'
def display_manager ( ) : if os . environ . get ( 'WAYLAND_DISPLAY' ) : return 'WAYLAND' # Fallback assumption of X11 return 'X11'