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:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user