ebruck / radiotray-ng

An Internet radio player for Linux
GNU General Public License v3.0
260 stars 25 forks source link

Wayland System Tray #216

Open xensurve opened 8 months ago

xensurve commented 8 months ago

(radiotray-ng:2681): Gtk-CRITICAL **: 14:23:44.987: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

OS : ARCH DESKTOP: PLASMA , WAYLAND RADIOTRAY : AUR

I have installed lib32-libappindicator-gtk3 and libappindicator-gtk3 but it stil wont show in the system tray , works fine in X11

ebruck commented 8 months ago

Have you tried any other appindicator app under KDE? I know that it works to some degree, but it isn't as nice as on Gnome. For me radiotray-ng works fine under Wayland/Gnome.

idovitz commented 8 months ago

Same here, no tray icon in gnome3, works fine under plasma6/wayland..

xensurve commented 8 months ago

here's a work around, force it to use X11 Backend

GDK_BACKEND=x11 radiotray-ng

ebruck commented 8 months ago

Same here, no tray icon in gnome3, works fine under plasma6/wayland..

@idovitz do you have this extension installed for gnome3? https://extensions.gnome.org/extension/615/appindicator-support/

idovitz commented 7 months ago

Yep, installed it. Only show tray icon with xensurves workarround.

ebruck commented 7 months ago

@idovitz if you run this command what does it print?

GDK_BACKEND=help radiotray-ng

idovitz commented 7 months ago

Supported GDK backends: wayland x11 broadway

(radiotray-ng:4311): Gtk-CRITICAL **: 18:09:43.156: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

SpyPower commented 6 months ago

the .desktop file needs to be altered.

$ cat /usr/share/applications/radiotray-ng.desktop
[Desktop Entry]
Categories=AudioVideo;Audio;Player;GTK;
Comment=Internet Radio Player for Linux
Exec=/usr/bin/env GDK_BACKEND=x11 /usr/bin/radiotray-ng
Hidden=false
Icon=/usr/share/icons/hicolor/256x256/apps/radiotray-ng-notification.png
Name=Radiotray-NG
StartupNotify=false
Terminal=false
Type=Application

If you have a startup application, that needs to be changed as well Command:

/usr/bin/env GDK_BACKEND=x11 /usr/bin/radiotray-ng
milahu commented 2 months ago

still an issue with radiotray-ng 0.2.8, libappindicator-gtk3-12.10.1, plasma 6.1, wayland, breeze-dark theme

setting GDK_BACKEND=x11 does not help

same issue with radiotray-ng c7f5bd089748e49d44ef76b12c2262dd66ef5331

same issue with libayatana-appindicator

the radiotray-ng.png icon is loaded

$ strace -ff -s 999999 ./result/bin/radiotray-ng 2>&1 | grep -F .png
[pid 295794] openat(AT_FDCWD, "/nix/store/1h6nmjg8cdyk8n74xnybypcsy3xsdd7q-radiotray-ng-0.2.8/share/radiotray-ng/radiotray-ng.png", O_RDONLY <unfinished ...>

the radiotray-ng.png icon is visible in the about dialog

maybe an upstream issue with libappindicator

source: src/radiotray-ng/gui/appindicator/appindicator_gui.cpp