Merge pull request #324179 from jchw-forks/xpra/fix-xdg-open

xpra: fix xdg-open path
This commit is contained in:
Aleksana 2024-07-04 15:43:44 +08:00 committed by GitHub
commit f0d8cd8702
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,11 +29,13 @@
, pango
, pulseaudio
, python3
, stdenv
, util-linux
, which
, x264
, x265
, xauth
, xdg-utils
, xorg
, xorgserver
}:
@ -84,6 +86,12 @@ in buildPythonApplication rec {
./fix-122159.patch # https://github.com/NixOS/nixpkgs/issues/122159
];
# Note: xposix is renamed to posix in v5.
postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace xpra/platform/xposix/features.py \
--replace-fail "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open"
'';
INCLUDE_DIRS = "${pam}/include";
nativeBuildInputs = [