In my case the reason was that snap could not find the session bus when
logging in via an x2go session and apparently creates the scope under
the wrong hierarchy.
I fixed this by adding a startup script for X2GO which sets the session
bus address if it is not set.
As root/with sudo created file /etc/x2go/Xsession.d/99-fix-dbus.sh with
this content:
```
#!/bin/sh
# Fix DBUS_SESSION_BUS_ADDRESS for snap compatibility under X2Go
if [ -S "/run/user/$(id -u)/bus" ]; then
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
fi
```
And made it executable: `sudo chmod 755 /etc/x2go/Xsession.d/99-fix-
dbus.sh`
Then restarted the x2go server: `sudo systemctl restart
x2goserver.service `
And after this, running firefox did work for me.
Perhaps this is helpful for others.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1951491
Title:
Can't run snaps: .slice/session-1.scope is not a snap cgroup
To manage notifications about this bug go to:
https://bugs.launchpad.net/x2go/+bug/1951491/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs