~michael-sheldon/ubuntu-touch-session/fix-1659388

1
2
3
4
5
6
7
8
# Join the phablet Upstart session
if [ "$USER" != "root" ]
then
    uid=$(getent passwd "$USER"|cut -d: -f3)
    export XDG_RUNTIME_DIR="/run/user/$uid"

    export UPSTART_SESSION=$(/sbin/initctl list-sessions | awk '{ print $NF; quit }')
fi