Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the differences between sudo and machinectl modes #62

Open
intgr opened this issue Jul 2, 2021 · 1 comment
Open

Document the differences between sudo and machinectl modes #62

intgr opened this issue Jul 2, 2021 · 1 comment

Comments

@intgr
Copy link
Owner

intgr commented Jul 2, 2021

This is not properly explained anywhere, although mentioned in README and the sudo fallback warning

warning: machinectl (systemd-container) is not installed
warning: Falling back to 'sudo', some desktop integration features may not work

IIRC:

  • Can't use xdg-desktop-portal with sudo mode. What services does it provide and which applications use them?
  • GNOME Files had issues without xdg-desktop-portal?
@intgr
Copy link
Owner Author

intgr commented Jul 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant