Cannot autolaunch D-Bus without X11 $DISPLAY on Wayland

I am using FreeBSD 15.0-RELEASE without xorg and xwayland, but in my Wayland( niri) graphical interface, there seems to be an issue with DBus. Both Waybar and IBus etc display the error: Cannot autolaunch D-Bus without X11 $DISPLAY. This was working fine in version 14.3.

When I run echo $XDG_SESSION_TYPE, the output is empty. Setting it to wayland via export does not solve the problem. Similarly, echo $DBUS_SESSION_BUS_ADDRESS also outputs nothing.

I then tried running dbus-launch and export its output, then I can run waybar to start Waybar. I could only start Waybar using dbus-run-session waybar before. However, IBus still does not work properly, neither by repeating the above method nor by using dbus-run-session.

When I try to make changes using ibus-setup, it displays the error: failed to commit changes to dconf, Cannot autolaunch D-Bus without X11 $DISPLAY.
1000001761.jpg
 
Is dbus enabled and running?

What does sysrc dbus_enable show?
And pgrep -lf dbus
 
I m having this issue too on hyprland. i have to put
exec-once = dbus-launch waybar
in hyprland.conf to start waybar.
if not, have to start it manually by exec "dbus-launch waybar".
dunst is also affected.
 
Back
Top