Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.4k stars 696 forks source link

tray not working with error: Method RegisterStatusNotifierHost is not implemented #3111

Open ogios opened 6 months ago

ogios commented 6 months ago

log:

$ waybar
[2024-04-04 11:30:05.482] [info] Using configuration file /home/ogios/.config/waybar/config
[2024-04-04 11:30:05.485] [info] Using CSS file /home/ogios/.config/waybar/style.css
basic_string::_M_create
[2024-04-04 11:30:05.502] [info] Found device AT Translated Set 2 keyboard at '/dev/input/event5'
[2024-04-04 11:30:05.531] [info] Found device Razer Razer DeathAdder Essential at '/dev/input/event11'
[2024-04-04 11:30:05.578] [warning] module sway/language: Disabling module "sway/language", Socket path is empty
[2024-04-04 11:30:05.742] [info] Bar configured (width: 1920, height: 30) for output: eDP-1
[2024-04-04 11:30:05.743] [error] Host: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method RegisterStatusNotifierHost is not implemented

tray config:

...
    "tray": {
        "icon-size": 21,
        "spacing": 10
    },
...

how should i solve this?

xi commented 1 month ago

Trays consist of two components: A StatusNotifierWatcher that keeps track of all status icons, and a StatusNotifierHost which actually displays the icons. There can be multiple hosts, but only one watcher. Could it be that you already have some watcher running that doesn't allow additional hosts to register?