From 68dafab066c8d809a5483b25cf7092b4066cbcd2 Mon Sep 17 00:00:00 2001 From: networkException Date: Sat, 20 Jun 2026 11:43:02 +0200 Subject: [PATCH] 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 (cherry picked from commit 23bb7ee9abc08b69347448e0ff9a4b66d3ded883) --- pkgs/by-name/sp/spotify/linux.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sp/spotify/linux.nix b/pkgs/by-name/sp/spotify/linux.nix index 692f3b8a7fcf..55695e729a49 100644 --- a/pkgs/by-name/sp/spotify/linux.nix +++ b/pkgs/by-name/sp/spotify/linux.nix @@ -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 '';