Can not run wayland applications under stardust

I built stardust-xr-server on Arch, started it with its own XDG_RUNTIME_DIR (otherwise my desktop becomes unusable), and tried to connect weston-terminal to it with WAYLAND_SOCKET=/tmp/stardust-xr-0/wayland-0 weston-terminal. Weston-terminal only outputs this:
failed to connect to Wayland display: Success
failed to create display: Success
failed to connect to Wayland display: Success
failed to create display: Success
Other wayland applications fail with the same or similar messages.
23 Replies
nvme0n1p1
nvme0n1p1OP11mo ago
Happens on both main and develop branch
Nova
Nova11mo ago
wait what specifically do you mean your desktop becomes unusable if it's the same runtime dir that's def important to figure out
nvme0n1p1
nvme0n1p1OP11mo ago
Because I can't start anything anymore because things try to use the wayland socket and fail
Nova
Nova11mo ago
ah you're using Xorg on your 2D desktop aren't you?
nvme0n1p1
nvme0n1p1OP11mo ago
Yes
Nova
Nova11mo ago
that'll do it! but manually setting the socket should still work so try develop branch on server always
nvme0n1p1
nvme0n1p1OP11mo ago
I did try develop branch
Nova
Nova11mo ago
just keep it on develop I mean
nvme0n1p1
nvme0n1p1OP11mo ago
Ok
Nova
Nova11mo ago
are you running an nvidia GPU? just curious
nvme0n1p1
nvme0n1p1OP11mo ago
Nope, AMD
Nova
Nova11mo ago
cool I don't think it matters but may as well check that error message is horribly vague @i509VCB any ideas? :S
i509VCB
i509VCB11mo ago
that message is from libwayland? Although that's incredibly odd
Nova
Nova11mo ago
I assume so yea
i509VCB
i509VCB11mo ago
wuh why would strerror be returning Success on failure? wl_display_connect doesn't say anything about errno being changed is weston-terminal getting a connection failure and reading the default errno value? (the message is not from libwayland)
nvme0n1p1
nvme0n1p1OP11mo ago
I'm sorry, I have to sleep for now, I will get back to this when I'm awake again
nvme0n1p1
nvme0n1p1OP11mo ago
Alright, anything I can do to debug this?
i509VCB
i509VCB11mo ago
Is there a reason WAYLAND_SOCKET is being used there instead of WAYLAND_DISPLAY?
nvme0n1p1
nvme0n1p1OP11mo ago
AFAIU WAYLAND_DISPLAY just sets the name of the socket in $XDG_RUNTIME_DIR, while WAYLAND_SOCKET sets the full path to the socket since the socket is in a directory onder /tmp instead of in $XDG_RUNTIME_DIR, I need to set the full path (I can make a symlink and set WAYLAND_DISPLAY and I've tried that, with the same result)
Nova
Nova11mo ago
hey are you running flatland too?
nvme0n1p1
nvme0n1p1OP11mo ago
I have tried, but it doesn't show up when I run it; I know stardust is running and can render something because it shows the controllers
Nova
Nova10mo ago
ok, try on the latest server/flatland
Want results from more Discord servers?
Add your server