Open intgr opened 3 years ago
Looks like with sudo, the user XDG_RUNTIME_DIR
directory for target user isn't created
% ego --sudo
[ego@X ~]$ echo $XDG_RUNTIME_DIR
[ego@X ~]$ ls -la /run/user/$UID
ls: cannot access '/run/user/979': No such file or directory
% ego --machinectl
Connected to the local host. Press ^] three times within 1s to exit session.
[ego@X ~]$ echo $XDG_RUNTIME_DIR
/run/user/979
[ego@X ~]$ ls -lad /run/user/$UID
drwx------ 7 ego ego 180 Jul 2 12:34 /run/user/979
This is not properly explained anywhere, although mentioned in README and the sudo fallback warning
IIRC: