Skip to content

Commit

Permalink
Fix up condition
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Jan 4, 2025
1 parent 84fc799 commit 15b2c61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tauon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ def transfer_args_and_exit() -> None:
logging.error(f"Size 0: {logical_size[0]}")
logging.error(f"Size 1: {logical_size[1]}")
logging.error(f"Flags: {flags}")
sdl_err: bytes = SDL_GetError()
sdl_err = SDL_GetError().decode()
logging.error(f"SDL Error: {sdl_err}")
if str(sdl_err) == "x11 not available":
if sdl_err == "x11 not available":
x11_path = user_directory / "x11"
if x11_path.exists():
logging.critical("Disabled Xwayland preference as X11 was not found - Known issue if on Flatpak - https://github.com/Taiko2k/Tauon/issues/1034")
Expand All @@ -370,6 +370,9 @@ def transfer_args_and_exit() -> None:
if not t_window:
logging.error(f"Failed to create Wayland fallback window - SDL Error: {SDL_GetError()}")
sys.exit(1)
else:
logging.critical(f"Failed to find {x11_path} but got 'x11 not available' error, hm?")
sys.exit(1)
else:
sys.exit(1)

Expand Down

0 comments on commit 15b2c61

Please sign in to comment.