Workaround for issue #44254 (Steam cannot connect to friends network) (#44602)

* steam: Set TZ to detected timezone on startup

Workaround for issue #44254 (Steam cannot connect to friends network)
This commit is contained in:
Matthew Harm Bekkema 2018-11-10 13:17:04 +10:00 committed by Silvan Mosberger
parent c74e1769fa
commit 2a842a1386

View File

@ -180,6 +180,15 @@ in buildFHSUserEnv rec {
''; '';
profile = '' profile = ''
# Workaround for issue #44254 (Steam cannot connect to friends network)
# https://github.com/NixOS/nixpkgs/issues/44254
if [ -z ''${TZ+x} ]; then
new_TZ="$(readlink -f /etc/localtime | grep -P -o '(?<=/zoneinfo/).*$')"
if [ $? -eq 0 ]; then
export TZ="$new_TZ"
fi
fi
export STEAM_RUNTIME=${if nativeOnly then "0" else "/steamrt"} export STEAM_RUNTIME=${if nativeOnly then "0" else "/steamrt"}
'' + extraProfile; '' + extraProfile;