xfce.thunar: Add exo to PATH

Thunar assumes exo-desktop-item-edit and exo-open are available
and does not provide fallback when they are missing, so just pass exo
to the wrapper.

Fixes https://github.com/NixOS/nixpkgs/issues/329688.
This commit is contained in:
Bobby Rong 2024-07-31 21:12:49 +08:00
parent 382426770f
commit 1175a030a1
No known key found for this signature in database

View File

@ -60,6 +60,13 @@ let unwrapped = mkXfceDerivation {
sed -i -e 's|thunar_dialogs_show_insecure_program (parent, _(".*"), file, exec)|1|' thunar/thunar-file.c
'';
preFixup = ''
gappsWrapperArgs+=(
# https://github.com/NixOS/nixpkgs/issues/329688
--prefix PATH : ${lib.makeBinPath [ exo ]}
)
'';
meta = with lib; {
description = "Xfce file manager";
mainProgram = "thunar";