Skip to content

fix(gui): force X11 backend for system tray to fix Wayland startup#506

Open
SavageCore wants to merge 1 commit intojellyfin:masterfrom
SavageCore:fix/wayland
Open

fix(gui): force X11 backend for system tray to fix Wayland startup#506
SavageCore wants to merge 1 commit intojellyfin:masterfrom
SavageCore:fix/wayland

Conversation

@SavageCore
Copy link
Copy Markdown

Unsets WAYLAND_DISPLAY and forces GDK_BACKEND=x11 before initializing the system tray process. This prevents the application from failing to start on Wayland environments due to pystray/GTK incompatibilities.

Since only the system tray runs via XWayland, MPV launches natively under Wayland, which correctly allows it to inhibit screen timeouts.

Tested the Flatpak

Workaround for #219

@SavageCore SavageCore force-pushed the fix/wayland branch 3 times, most recently from 0d044c1 to f9b4bfa Compare February 24, 2026 14:43
fix(gui): force X11 backend for system tray to fix Wayland startup

Unsets WAYLAND_DISPLAY and forces GDK_BACKEND=x11 before initializing
the system tray process. This prevents the application from failing to
start on Wayland environments due to pystray/GTK incompatibilities.

Since only the system tray runs via XWayland, MPV launches natively
under Wayland, which correctly allows it to inhibit screen timeouts.
@SavageCore
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant