Pipewire errors if XDG_RUNTIME_DIR is not set
I get the following logs:
[E][000065308.586311][module-protocol-native.c:445 init_socket_name()] server 0x55c21d7cc030: XDG_RUNTIME_DIR not set in the environment
[E][000065308.586337][impl-module.c:281 pw_context_load_module()] "/usr/lib64/pipewire-0.3/libpipewire-module-protocol-native.so": failed to initialize: No such file or directory
[E][000065308.586394][daemon-config.c:202 pw_daemon_config_run_commands()] could not run command load-module: could not load module "libpipewire-module-protocol-native": No such file or directory
[E][000065308.586405][main.c:127 main()] failed to run config commands: No such file or directory
From the FreeDesktop specs:
If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement directory with similar capabilities and print a warning message.
Looks like Pipewire prints an error message and fails to initialize altogether instead.