Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Jan 4, 2025
1 parent 0879a8a commit eef38c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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 @@ -374,8 +374,6 @@ def transfer_args_and_exit() -> None:
logging.critical(f"Failed to find {x11_path} but got 'x11 not available' error, hm?")
sys.exit(1)
else:
print(sdl_err) # TODO remove me
print(str(sdl_err)) # TODO remove me
sys.exit(1)

if maximized:
Expand Down

0 comments on commit eef38c3

Please sign in to comment.