vscode,vscodium: fix moving files to the trash

Put gio in PATH so that VSCode is able to move files to the trash.

(cherry picked from commit a75326417df32c0354e3244a9461700d214eab82)
This commit is contained in:
Naïm Favier 2021-09-03 13:58:51 +02:00 committed by github-actions[bot]
parent 355b6d3675
commit e67b69d9a2

View File

@ -1,7 +1,7 @@
{ stdenv, lib, makeDesktopItem { stdenv, lib, makeDesktopItem
, unzip, libsecret, libXScrnSaver, libxshmfence, wrapGAppsHook , unzip, libsecret, libXScrnSaver, libxshmfence, wrapGAppsHook
, gtk2, atomEnv, at-spi2-atk, autoPatchelfHook , gtk2, atomEnv, at-spi2-atk, autoPatchelfHook
, systemd, fontconfig, libdbusmenu, buildFHSUserEnvBubblewrap , systemd, fontconfig, libdbusmenu, glib, buildFHSUserEnvBubblewrap
, writeShellScriptBin , writeShellScriptBin
# Populate passthru.tests # Populate passthru.tests
@ -98,6 +98,13 @@ let
runHook postInstall runHook postInstall
''; '';
preFixup = ''
gappsWrapperArgs+=(
# Add gio to PATH so that moving files to the trash works when not using a desktop environment
--prefix PATH : ${glib.bin}/bin
)
'';
inherit meta; inherit meta;
}; };