You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps we can get upstream to lax this requirement?
I'll investigate this later. A quick fix would be I think to configure UWSM to launch Sway. It automatically sets and manages systemd and xdg deps (including env vars).
I'll see if the maintainer is willing to look into this. I'm currently away from my main system and my network is too shaky to do... virtually anything.
Maintainer here - I have just pushed a change that should hopefully fix this and instead use the process id subject. However, I am unable to test it myself due to not having a Linux environment available. It's built via CI to garnix if you would like to try it out and report back.
just ran into the same issue. another solution that worked for me is if you happen to be using the command dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in your config like i do, just add XDG_SESSION_ID to the end of that command. (btw thanks @cccslater for figuring out which environment variable it was :) )
just ran into the same issue. another solution that worked for me is if you happen to be using the command dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in your config like i do, just add XDG_SESSION_ID to the end of that command. (btw thanks @cccslater for figuring out which environment variable it was :) )
just ran into the same issue. another solution that worked for me is if you happen to be using the command dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in your config like i do, just add XDG_SESSION_ID to the end of that command. (btw thanks @cccslater for figuring out which environment variable it was :) )
Do you add this in your window manager config?
yes. It depends on which window manager you use, but in Sway for example you just put it as an exec line in your config, similar to how you autostart other programs.
yes. It depends on which window manager you use, but in Sway for example you just put it as an exec line in your config, similar to how you autostart other programs.
Activity
cccslater commentedon Jan 12, 2025
Specific error:
Which corresponds to
Value::new(std::env::var("XDG_SESSION_ID")?). I suppose sway doesn't set this variableAlso, even if I run soteria manually, nautilus can't connect:
gvfsd-admin: line 1: pkexec: command not found, but this is a separate issue, I think.JohnRTitor commentedon Jan 13, 2025
Perhaps we can get upstream to lax this requirement?
I'll investigate this later. A quick fix would be I think to configure UWSM to launch Sway. It automatically sets and manages systemd and xdg deps (including env vars).
CC @NotAShelf soteria maintainer
NotAShelf commentedon Jan 13, 2025
I'll see if the maintainer is willing to look into this. I'm currently away from my main system and my network is too shaky to do... virtually anything.
imvaskel commentedon Jan 14, 2025
Maintainer here - I have just pushed a change that should hopefully fix this and instead use the process id subject. However, I am unable to test it myself due to not having a Linux environment available. It's built via CI to garnix if you would like to try it out and report back.
cccslater commentedon Jan 14, 2025
cccslater commentedon Jan 15, 2025
All sorted! I needed
wayland.windowManager.sway.systemd.variables = [ "--all"]in my hm config :-) sorry for the hassle!juipeltje commentedon Mar 25, 2025
just ran into the same issue. another solution that worked for me is if you happen to be using the command
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOPin your config like i do, just addXDG_SESSION_IDto the end of that command. (btw thanks @cccslater for figuring out which environment variable it was :) )imvaskel commentedon Mar 26, 2025
I've done a bit of testing and the above solution is the one I recommend if your desktop environment does not properly set environment variables.
NikunjK8 commentedon Dec 18, 2025
Do you add this in your window manager config?
juipeltje commentedon Dec 18, 2025
yes. It depends on which window manager you use, but in Sway for example you just put it as an exec line in your config, similar to how you autostart other programs.
NikunjK8 commentedon Dec 19, 2025
Got it, thanks.