Merge pull request #301283 from lilyinstarlight/fix/mattermost-desktop-stuff

mattermost-desktop: support NIXOS_OZONE_WL and fix sso login redirects
This commit is contained in:
Janik 2024-05-04 00:02:20 +02:00 committed by GitHub
commit 8a708d697a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,9 @@ stdenv.mkDerivation {
--replace /share/mattermost-desktop/mattermost-desktop /bin/mattermost-desktop
makeWrapper '${lib.getExe electron_28}' $out/bin/${pname} \
--add-flags $out/share/${pname}/app.asar
--set-default ELECTRON_IS_DEV 0 \
--add-flags $out/share/${pname}/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
runHook postInstall
'';