joplin-desktop: add window decorations for wayland

This commit is contained in:
Steven Kou 2023-10-04 22:23:50 -04:00
parent 349bdd9653
commit f9294b2952
No known key found for this signature in database
GPG Key ID: D0D4BCFA8DB68E35

View File

@ -55,7 +55,7 @@ let
mv $out/bin/{${name},${pname}}
source "${makeWrapper}/nix-support/setup-hook"
wrapProgram $out/bin/${pname} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}"
install -Dm444 ${appimageContents}/@joplinapp-desktop.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/@joplinapp-desktop.png -t $out/share/pixmaps
substituteInPlace $out/share/applications/@joplinapp-desktop.desktop \