$old_shell bash -s <<'EOF'
if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then
export XDG_RUNTIME_DIR=/run/user/1000
$old_shell bash -s <<'EOF'
if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then
export XDG_RUNTIME_DIR=/run/user/1000