#!/bin/bash

# In most distributions the `runuser -l` PAM stack doesn't have pam_env.so.
# Manually source /etc/environment.
[ -r "/etc/environment" ] && source "/etc/environment"

EXPORT_LANG=no

if [ "$EXPORT_LANG" = "yes" ]; then
    export LANG=$(localectl | grep LANG | cut -d"=" -f2)
fi
exec /bin/bash --noprofile --norc "$@" <&0
