Unverified Commit 25c3b030 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #258576 from evalexpr/altair-use-wayland

parents 01214215 f7c81d7c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
{ lib, appimageTools, fetchurl }:
{ lib, appimageTools, makeWrapper, fetchurl }:

let
  pname = "altair";
@@ -17,6 +17,10 @@ appimageTools.wrapType2 {
  extraInstallCommands = ''
    mv $out/bin/${pname}-${version} $out/bin/${pname}

    source "${makeWrapper}/nix-support/setup-hook"
    wrapProgram $out/bin/${pname} \
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"

    install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
    substituteInPlace $out/share/applications/${pname}.desktop \
      --replace 'Exec=AppRun' 'Exec=${pname}'