gnome-initial-setup-copy-worker needs to set LC_* environment
Early in the gnome-session startup, we pick up the users locale from GSettings. This happens long before gnome-initial-setup-copy-worker is run, which means that the users configuration has not yet been copied into their home directory and we end with the environment not being set then.
gnome-initial-setup-copy-worker
needs to use the Setenv
call on the session manager to set the following variables in the same way that the script does:
SETTING=$(G_MESSAGES_DEBUG= gsettings get org.gnome.system.locale region)
REGION=${SETTING#\'}
REGION=${REGION%\'}
if [ -n "$REGION" ]; then
export LC_TIME=$REGION
export LC_NUMERIC=$REGION
export LC_MONETARY=$REGION
export LC_MEASUREMENT=$REGION
export LC_PAPER=$REGION
fi