Skip to content

Commit 2c09d65

Browse files
authored
plexamp: add ozone platform hint for wayland (#335867)
2 parents 8f1d455 + 6444a64 commit 2c09d65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/applications/audio/plexamp/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, fetchurl, appimageTools }:
1+
{ lib, fetchurl, appimageTools, makeWrapper }:
22

33
let
44
pname = "plexamp";
@@ -23,6 +23,9 @@ appimageTools.wrapType2 {
2323
$out/share/icons/hicolor/scalable/apps/plexamp.svg
2424
substituteInPlace $out/share/applications/${pname}.desktop \
2525
--replace 'Exec=AppRun' 'Exec=${pname}'
26+
source "${makeWrapper}/nix-support/setup-hook"
27+
wrapProgram "$out/bin/plexamp" \
28+
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
2629
'';
2730

2831
passthru.updateScript = ./update-plexamp.sh;

0 commit comments

Comments
 (0)