Skip to content

Commit

Permalink
Remove wayland hard blocker
Browse files Browse the repository at this point in the history
It "worksforme" (mostly) on plasma 6.
  • Loading branch information
Kangie committed Mar 4, 2024
1 parent 406d8af commit 794c112
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions komorebi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from komorebi.screen import Screen


def check_desktop_compatible():
def check_desktop_wayland():
return not(os.environ.get('XDG_SESSION_TYPE') == 'wayland' or os.environ.get('WAYLAND_DISPLAY'))


Expand Down Expand Up @@ -87,10 +87,9 @@ def main():
logging.basicConfig(format=log_format, level=log_level, datefmt='%H:%M:%S')

# Ensure we are not on Wayland
if not check_desktop_compatible():
logging.error('Wayland detected. Not supported (yet) :(')
if not check_desktop_wayland():
logging.info('Wayland detected. Wayland support is Experimental!')
logging.info('Contribute to Komorebi and add the support! <3')
return

# Initialize backends
GtkClutter.init(sys.argv)
Expand Down

0 comments on commit 794c112

Please sign in to comment.