wine: keep argv0 of the wrapper

In wine-10.1 and later, most executables are links to `bin/wine` and
thus depend on the argv0 value, which (since `bin/wine` is a wrapper)
wasn't set originally. This change sets argv0 to whatever link it was
called from.

Fixes #394549
This commit is contained in:
Acid Bong
2025-04-06 21:26:16 +03:00
parent 29742c1aeb
commit bd3ad658f8
+1 -1
View File
@@ -265,7 +265,7 @@ stdenv.mkDerivation (
hidden="$(dirname "$prog")/.$(basename "$prog")"
mv "$prog" "$hidden"
makeWrapper "$hidden" "$prog" \
--argv0 "" \
--inherit-argv0 \
--set WINELOADER "$hidden" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0"
fi