Conversation
necessary for example for `soteria` polkit agent: https://github.com/imvaskel/soteria?tab=readme-ov-file#installation Closes alebastr#40.
There was a problem hiding this comment.
Pull request overview
This pull request adds XDG_SESSION_ID to the list of environment variables that are propagated to systemd and dbus activation environments. This is necessary for tools like the soteria polkit agent that require this variable to function properly.
Changes:
- Added
XDG_SESSION_IDto the VARIABLES list in src/session.sh
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hm... GNOME developers believe that it's not safe to pass vars like XDG_SESSION_ID or XDG_VTNR, because it may break other desktop environments, or even the same DE after relogin: https://gitlab.gnome.org/GNOME/gnome-session/-/commit/646b9bc0584d02033ab9600c39b77d6f99bfc4a6. I'm curious though, why |
|
That doesn't seem right to me - if it's wrong on re-login then surely it means it wasn't correctly passed through again on the second login? Or Line 96 in f8b36c5 More interesting case would be two concurrent logins of the same user in different ttys - i.e. two seats, two sessions, one user - this would fail the same check since it's already set in the first session, and neither's more correct than the other. Proper multi-seat handling would be a different beast though, and afaik it's usual to have the greeter/dm launch sway only in the tty, to avoid exactly this sort of collision (as well as an escape to fix wm startup issues), like: if [ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] ; then
exec sway
fi(https://wiki.archlinux.org/title/Sway#Automatically_on_TTY_login) or as I have for To me, we have a session target, if setting the session ID in it causes a problem in some case; the problem is not that we set it, the problem is it not being correct. |
necessary for example for
soteriapolkit agent:https://github.com/imvaskel/soteria?tab=readme-ov-file#installation
Closes #40.