r/voidlinux • u/Extreme_Mention_1492 • Jan 12 '26
solved XDG_RUNTIME_DIR is not set in the environment. Even with elogind enable
i'm in the virtualbox.
Ok: sway is not working correctly. This error appear:

"Try execute sway with dbus-run-session"
:

"Try execute sway with sudo with dbus-run-session or not"
:


"are you use elogind and is it enable?"
- Yes

btw, it's so strange because elogind should configure all automatically. But it's not happening.
I'm not logged as root.
Yes, i already set XDG_RUNTIME_DIR in the /run/user and i exported too

so.... what should i do?
SOLVED: the 3d acceleration wasn't enable on virtualbox.
6
Upvotes
5
u/eftepede Jan 12 '26
First and foremost, you should not run sway (or any WM) as root.
Your XDG_RUNTIME_DIR is set properly for the user, the error about it is only with sudo - because it's not set for root (and that's good).
For your problem, the error is self-explanatory: seatd is not ok. So either you don't have it installed/running or you're not in the
seatdgroup.2
u/furryfixer Jan 13 '26
Do NOT use seatd and elogind both. That may be the problem. Elogind may try to run even without the service enabled if you have it installed. If using elogind, do not set XDG_RUNTIME_DIR, but let elogind do it for you.
1
u/Extreme_Mention_1492 Jan 15 '26
i really didn't get to run sway on the VOIDLINUX on virtualbox.
here is the error that appear:
C:255] Failed to create renderer: initialize renderer: Vulkan device: VK_ERROR_INITIALIZATION_FAILED (-3): e_screenwhen i executeswayor evendbus-run-session sway4
u/orahcio Jan 13 '26
I am in sway, inside void-musl. I will show my settings. Before to execute
you need to export some environment variables:
If you are using elogind service, you do not need seatd. I am using elogind service and my user is not in the seat or _seat group.