tutanota-desktop: add electron ozone flags

This commit is contained in:
awwpotato
2025-08-05 15:33:50 -07:00
parent eb6f0329fe
commit 181ba5f166
@@ -2,6 +2,7 @@
lib,
appimageTools,
fetchurl,
makeWrapper,
gitUpdater,
}:
@@ -16,6 +17,8 @@ appimageTools.wrapType2 rec {
extraPkgs = pkgs: [ pkgs.libsecret ];
nativeBuildInputs = [ makeWrapper ];
extraInstallCommands =
let
appimageContents = appimageTools.extract { inherit pname version src; };
@@ -26,6 +29,9 @@ appimageTools.wrapType2 rec {
substituteInPlace $out/share/applications/tutanota-desktop.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
wrapProgram $out/bin/tutanota-desktop \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
'';
passthru.updateScript = gitUpdater {