spotify: fix wayland when NIXOS_OZONE_WL is set

This patch adds a runtime fix to the spotify wrapper to
unset DISPLAY when NIXOS_OZONE_WL is set.

See https://wiki.archlinux.org/title/Spotify#Running_under_Wayland
Resolves #531950
This commit is contained in:
networkException
2026-06-20 11:44:41 +02:00
parent 27c666faed
commit 23bb7ee9ab
+1 -1
View File
@@ -240,7 +240,7 @@ stdenv.mkDerivation (finalAttrs: {
} \
--prefix LD_LIBRARY_PATH : "$librarypath" \
--prefix PATH : "${zenity}/bin" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime=true}}"
--run 'if [[ "''${NIXOS_OZONE_WL:-default}" == "1" ]]; then unset DISPLAY; fi'
runHook postFixup
'';