Unverified Commit f518ef45 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

todoist-electron: respect NIXOS_OZONE_WL (#445508)

parents 2580ade4 05b04db5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  appimageTools,
  fetchurl,
  asar,
  makeWrapper,
}:

let
@@ -38,6 +39,10 @@ appimageTools.wrapAppImage {
    substituteInPlace $out/share/applications/todoist.desktop \
      --replace-fail "Exec=AppRun" "Exec=todoist-electron --" \
      --replace-fail "Exec=todoist" "Exec=todoist-electron --"

    . ${makeWrapper}/nix-support/setup-hook
    wrapProgram $out/bin/todoist-electron \
      --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
  '';

  meta = {