As I understand from this earlier thread (and from inspecting the value of XDG_RUNTIME_DIR
myself), snappy sets the value for XDG_RUNTIME_DIR to /run/user/
id -u/snap.$SNAP_NAME
. When I open up a terminal in Intellij and echo the value of XDG_RUNTIME_DIR, it shows that: /run/user/1000/snap.intellij-idea-ultimate
. However, when I do podman run ...
from within the IntelliJ terminal, I get an error:
Error: sd-bus call: Permission denied: OCI runtime permission denied error
I presume this is because podman is not able to access the userspace dbus socket located in XDG_RUNTIME_DIR
and is instead instantiating XDG_RUNTIME_DIR
to something else to try to connect to dbus, but it is finding the root dbus socket?
If I run podman run
inside a normal terminal, it works fine, without any issues, so I presume this has to do with how XDG_RUNTIME_DIR
is set.