Hello fellow artix users!
In my quest to switch from dwm to xmonad, I encountered a problem. Well, several.
First one was while trying to use xmobar :
xmobar: SocketError {socketErrorMessage = "Network.Socket.connect: <socket: 12>: does not exist (No such file or directory)", socketErrorFatal = True, socketErrorAddress = Just (Address "unix:path=/run/user/1000/bus")}
which I fixed by adding this to /etc/enviroment :
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
Now, xmobar got working, but now sound does not work, neither pulseaudio nor pipewire.
pulse says E: [pulseaudio] main.c: Daemon startup failed.
pipewire says :
~ ❯❯❯ pipewire
[W][01298.169664][ module-rtkit.c: 183 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][01298.169692][ module-rtkit.c: 517 set_nice()] could not set nice-level to -11: Permission denied
[W][01298.172089][ module-rtkit.c: 183 translate_error()] RTKit error: org.freedesktop.DBus.Error.AccessDenied
[W][01298.172104][ module-rtkit.c: 504 idle_func()] could not make thread realtime: Permission denied
~ ❯❯❯ pipewire-pulse
[E][01367.657720][ dbus-name.c: 61 dbus_request_name()] Failed to acquire org.pulseaudio.Server: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.115115" is not allowed to own the service "org.pulseaudio.Server" due to security policies in the configuration file
[E][01367.762610][ pulse-server.c: 920 do_set_client_name()] pulse-server 0x5629aebb55c0: failed to connect client: Host is down
The pam_systemd in title is there because the xmobar problem was because of there not being pam_systemd.