hypr env sets QT_QPA_PLATFORM="wayland;xcb", and under Wayland Plex's bundled QtWebEngine never loads the web client, so the window stays blank. Both the PATH wrapper and the .desktop entry now force xcb, as upstream does, and set XCURSOR_SIZE=24 so the X11 cursor isn't huge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
1006 B
Bash
Executable File
19 lines
1006 B
Bash
Executable File
#!/bin/sh
|
|
# Wrapper for the plex-desktop package's /usr/bin/Plex (-> /opt/plex-desktop/Plex.sh).
|
|
#
|
|
# QT_QUICK_CONTROLS_STYLE=org.hyprland.style is set globally in
|
|
# hypr/core/env.lua for other Qt/QML apps' theming (hyprland-qt-support), but
|
|
# Plex Desktop bundles its own private Qt/QML runtime that doesn't ship that
|
|
# style plugin — inheriting the var makes it fail to load its UI and exit
|
|
# immediately with "module \"org.hyprland.style\" is not installed" (see
|
|
# ~/.local/share/plex/Logs/Plex.log). This dir is first on $PATH, so it
|
|
# shadows /usr/bin/Plex for both a terminal launch and the .desktop entry
|
|
# (Exec=Plex is PATH-resolved) without touching the global env var.
|
|
# QT_QPA_PLATFORM: hypr env sets "wayland;xcb"; under Wayland the bundled
|
|
# QtWebEngine never runs the web client and the window stays blank.
|
|
unset QT_QUICK_CONTROLS_STYLE
|
|
export QT_QPA_PLATFORM=xcb
|
|
# Unset in the session; without it the X11 cursor in Plex is huge.
|
|
export XCURSOR_SIZE=24
|
|
exec /opt/plex-desktop/Plex.sh "$@"
|