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

librda fails to detect local session managed by systemd #8

Open
peat-psuwit opened this issue Aug 30, 2023 · 0 comments
Open

librda fails to detect local session managed by systemd #8

peat-psuwit opened this issue Aug 30, 2023 · 0 comments

Comments

@peat-psuwit
Copy link

Version: 0.0.5-1 in Ubuntu 20.04, 0.0.5-1.1 in Ubuntu 23.04

librda is hard-coded to look for $XDG_SEAT environment variable for local session signal. However, nowadays almost all user session components are managed using Systemd, and by convention (?), this environment variable is not imported into Systemd environment variables [1].

This means, for Systemd-managed local session, librda will not say the session is local, and ironically will not way it's remote either. This is tested on Ubuntu Touch 20.04 and Ubuntu MATE 23.04.

This causes problem when testing ayatana-indicator-power 23.6.1 into Ubuntu Touch, as the indicator header becomes invisible if librda says the session is not local.

[1] Debian did this in XSession's 95dbus_update-activation-env, which I copied for Ubuntu Touch in ubuntu-touch-session session leader script. I have to admit I have no idea why.

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