14 lines
747 B
Bash
Executable File
14 lines
747 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.
|
|
unset QT_QUICK_CONTROLS_STYLE
|
|
exec /opt/plex-desktop/Plex.sh "$@"
|