> However, "sudo su -" does not result in the creation of XDG_RUNTIME_DIR for the root user, hence UPSTART_SESSION is set to the null value.
That's correct, and intended. This was explicitly done in https://launchpad.net/ubuntu/+source/systemd/204-0ubuntu19.1 for bug 1197395. $XDG_RUNTIME_DIR must *never* be set for a session/program which does not belong to the owner of /run/user/..., in particular not root. Otherwise processes from root will damage/destroy the user's runtime dir. ** Changed in: systemd (Ubuntu) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1217863 Title: /etc/profile.d/upstart-phablet.sh sets UPSTART_SESSION to null value To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1217863/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs