Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tray module not showing icons #3597

Closed
Akira-uestc opened this issue Sep 13, 2024 · 20 comments · Fixed by #3604
Closed

tray module not showing icons #3597

Akira-uestc opened this issue Sep 13, 2024 · 20 comments · Fixed by #3604
Labels
bug Something isn't working custom sni

Comments

@Akira-uestc
Copy link

version

built from d177969

description

no icon in tray module
图片

log

** (waybar:3152): WARNING **: 17:53:34.711: Status Notifier Item with bus name ':1.6' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-09-13 17:53:34.712] [error] Failed to create DBus Proxy for :1.6 /org/ayatana/NotificationItem/nm_applet: std::bad_cast

** (waybar:3152): WARNING **: 17:53:35.008: Status Notifier Item with bus name ':1.6' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-09-13 17:53:35.009] [error] Failed to create DBus Proxy for :1.63 /StatusNotifierItem: std::bad_cast

config

    "tray": {
        "icon-size": 18,
        "spacing": 5
    }
@github-actions github-actions bot added bug Something isn't working custom sni labels Sep 13, 2024
@mohammedbilalns
Copy link

i am facing the same issue

** (waybar:2129): WARNING **: 15:55:40.683: Status Notifier Item with bus name ':1.24' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-09-13 15:55:40.684] [error] Failed to create DBus Proxy for :1.24 /org/ayatana/NotificationItem/nm_applet: std::bad_cast

** (waybar:2129): WARNING **: 15:55:42.197: Status Notifier Item with bus name ':1.24' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-09-13 15:55:42.204] [error] Failed to create DBus Proxy for :1.60 /org/blueman/sni: std::bad_cast

@GbGp
Copy link

GbGp commented Sep 13, 2024

The error originates here in get_variant<std::string>(value):

spdlog::trace("Set tray item property: {}.{} = {}", id.empty() ? bus_name : id,
std::string(name), get_variant<std::string>(value));

when name =="ItemIsMenu" (and value is supposed to be bool? not sure).

Anyway works for me when I comment out this line.

@bashprompt
Copy link

bashprompt commented Sep 13, 2024

Same:
[2024-09-13 07:46:38.934] [error] Failed to create DBus Proxy for :1.25 /org/ayatana/NotificationItem/pcloud1: std::bad_cast

OS: openSUSE Tumbleweed x86_64
Kernel: 6.10.9-1-default
Resolution: 1920x1080
DE: Hyprland
CPU: Intel i3-4330 (4) @ 3.500GHz
GPU: Intel HD Graphics

@warpje5
Copy link

warpje5 commented Sep 13, 2024

yeah same here. icons for custom/playerctl module doesnt work also, but i believe its fmt issue.
image

@EssenSea
Copy link

same problem.

@dhaneshdutta
Copy link

facing the same issue

@909oce
Copy link

909oce commented Sep 13, 2024

+1

@Arae-1
Copy link

Arae-1 commented Sep 14, 2024

same problem here

@mutoroglin
Copy link
Contributor

I've got the same problems

@alebastr
Copy link
Contributor

@Alexays c2f1a78 updated fmt to 11.0.1, but this version is known to have a compatibility issue with gtkmm: fmtlib/fmt#4052. Do you mind reverting both fmt dependency bump and your later attempt to fix the compilation in a4d31ab?

We need fmt < 11.0.0 or >= 11.0.2, but 11.0.2 is not yet available on wrapdb so it's better to stick with older version. In the meanwhile, I'll try to update the version in wrapdb.

@Arae-1
Copy link

Arae-1 commented Sep 14, 2024

same problem here

interestingly it works totally fine when launched from the terminal, however using hyprland's exec-once feature it doesn't display
image

@SwayKh
Copy link

SwayKh commented Sep 14, 2024

I have this same issue, But I wanted to add, That for some reason when I change the font size in style.css the icons reappear for me and disappear when reloading the bar. I have "reload_style_on_change": true, to show the font changes instantly.

@thyeun
Copy link

thyeun commented Sep 15, 2024

After update from arch, version 0.11.0-2 still facing this issue, tray module not showing icons.

@allergicapple
Copy link

allergicapple commented Sep 15, 2024

Can confirm, not fixed on Arch (CachyOS).
Please reopen.

$ waybar
[2024-09-15 14:06:18.419] [info] Using configuration file /home/user/.config/waybar/config
[2024-09-15 14:06:18.421] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-09-15 14:06:18.421] [info] Using CSS file /home/user/.config/waybar/style.css
[2024-09-15 14:06:18.467] [warning] module sway/language: Disabling module "sway/language", Socket path is empty
[2024-09-15 14:06:18.585] [error] Failed to create DBus Proxy for :1.121 /StatusNotifierItem: std::bad_cast
[2024-09-15 14:06:18.585] [error] Failed to create DBus Proxy for :1.126 /StatusNotifierItem: std::bad_cast
[2024-09-15 14:06:18.588] [info] Bar configured (width: 2560, height: 30) for output: eDP-1
[2024-09-15 14:06:18.588] [info] Bar configured (width: 2560, height: 30) for output: eDP-1
[2024-09-15 14:06:18.588] [error] Item '': No icon name or pixmap given.
[2024-09-15 14:06:18.588] [error] Item '': No icon name or pixmap given.
[2024-09-15 14:06:19.634] [error] Failed to create DBus Proxy for :1.131 /org/blueman/sni: std::bad_cast
$ waybar --version
Waybar v0.11.0
$ pacman -Q waybar
waybar 0.11.0-2.1
$ pacman -Qi waybar
Installed From  : cachyos-extra-v3
Name            : waybar
Version         : 0.11.0-2.1
Description     : Highly customizable Wayland bar for Sway and Wlroots based compositors
Architecture    : x86_64
URL             : https://github.com/Alexays/Waybar/
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : atkmm  cairomm  fmt  gcc-libs  glib2  glibc  glibmm  gtk-layer-shell  gtk3  gtkmm3  jack  jsoncpp  libdbusmenu-gtk3  libevdev  libinput
                  libmpdclient  libnl  libpipewire  libpulse  libsigc++  libwireplumber  libxkbcommon  playerctl  sndio  spdlog  systemd-libs  upower  wayland
                  libatkmm-1.6.so=1-64  libcairomm-1.0.so=1-64  libgtk-3.so=0-64  libjack.so=0-64  libjsoncpp.so=26-64  libpipewire-0.3.so=0-64
                  libsndio.so=7-64  libspdlog.so=1.14-64  libudev.so=1-64  libupower-glib.so=3-64
Optional Deps   : otf-font-awesome: Icons in the default configuration
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 2,07 MiB
Packager        : CachyOS <[email protected]>
Build Date      : So 15 Sep 2024 12:15:17 CEST
Install Date    : So 15 Sep 2024 14:04:33 CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

@Akira-uestc
Copy link
Author

Can confirm, not fixed on Arch (CachyOS). Please reopen.

$ waybar
[2024-09-15 14:06:18.419] [info] Using configuration file /home/user/.config/waybar/config
[2024-09-15 14:06:18.421] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-09-15 14:06:18.421] [info] Using CSS file /home/user/.config/waybar/style.css
[2024-09-15 14:06:18.467] [warning] module sway/language: Disabling module "sway/language", Socket path is empty
[2024-09-15 14:06:18.585] [error] Failed to create DBus Proxy for :1.121 /StatusNotifierItem: std::bad_cast
[2024-09-15 14:06:18.585] [error] Failed to create DBus Proxy for :1.126 /StatusNotifierItem: std::bad_cast
[2024-09-15 14:06:18.588] [info] Bar configured (width: 2560, height: 30) for output: eDP-1
[2024-09-15 14:06:18.588] [info] Bar configured (width: 2560, height: 30) for output: eDP-1
[2024-09-15 14:06:18.588] [error] Item '': No icon name or pixmap given.
[2024-09-15 14:06:18.588] [error] Item '': No icon name or pixmap given.
[2024-09-15 14:06:19.634] [error] Failed to create DBus Proxy for :1.131 /org/blueman/sni: std::bad_cast
$ waybar --version
Waybar v0.11.0
$ pacman -Q waybar
waybar 0.11.0-2.1
$ pacman -Qi waybar
Installed From  : cachyos-extra-v3
Name            : waybar
Version         : 0.11.0-2.1
Description     : Highly customizable Wayland bar for Sway and Wlroots based compositors
Architecture    : x86_64
URL             : https://github.com/Alexays/Waybar/
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : atkmm  cairomm  fmt  gcc-libs  glib2  glibc  glibmm  gtk-layer-shell  gtk3  gtkmm3  jack  jsoncpp  libdbusmenu-gtk3  libevdev  libinput
                  libmpdclient  libnl  libpipewire  libpulse  libsigc++  libwireplumber  libxkbcommon  playerctl  sndio  spdlog  systemd-libs  upower  wayland
                  libatkmm-1.6.so=1-64  libcairomm-1.0.so=1-64  libgtk-3.so=0-64  libjack.so=0-64  libjsoncpp.so=26-64  libpipewire-0.3.so=0-64
                  libsndio.so=7-64  libspdlog.so=1.14-64  libudev.so=1-64  libupower-glib.so=3-64
Optional Deps   : otf-font-awesome: Icons in the default configuration
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 2,07 MiB
Packager        : CachyOS <[email protected]>
Build Date      : So 15 Sep 2024 12:15:17 CEST
Install Date    : So 15 Sep 2024 14:04:33 CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

I use waybar-git in AUR and the latest git version works for me.
Try:

git clone https://aur.archlinux.org/waybar-git.git
cd waybar-git
makepkg -si

@grgpw
Copy link

grgpw commented Sep 15, 2024

obviously, there wasn't a new release yet

@dR3b
Copy link

dR3b commented Sep 15, 2024

Arch Linux: extra/waybar 0.11.0-3 work's! Thanks!

@GaetanLepage
Copy link

obviously, there wasn't a new release yet

In such cases, can a minor release be done ?

OriginCode added a commit to AOSC-Dev/aosc-os-abbs that referenced this issue Sep 17, 2024
backport patches to fix missing tray icons issue
ref: Alexays/Waybar#3597

Co-authored-by: Kaiyang Wu (@OriginCode) <[email protected]>
OriginCode added a commit to AOSC-Dev/aosc-os-abbs that referenced this issue Sep 17, 2024
backport patches to fix missing tray icons issue
ref: Alexays/Waybar#3597

Co-authored-by: Kaiyang Wu (@OriginCode) <[email protected]>
@kzdixon
Copy link

kzdixon commented Nov 1, 2024

You should really consider adding this fix to some new release so maintainers properly pick this up. Gentoo recently pushed out 0.11.0 and I was puzzled as to why tray icons suddenly stopped working. Downgrading to 0.10.4 solved it, which I had tried after stumbling my way into a few issues linked to this one.

@sentakuhm
Copy link

using hyprland-git and i tried both waybar from official arch repo and waybar-git, i get error:

** (waybar:43763): WARNING **: 11:35:43.869: Status Notifier Item with bus name ':1.21' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered

and no try icons.

EbonJaeger added a commit to getsolus/packages that referenced this issue Feb 6, 2025
**Summary**
- Backport a fix for the tray module not showing icons

Ref Alexays/Waybar#3597

Signed-off-by: Evan Maddock <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom sni
Projects
None yet