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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user