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

Wayland System Tray #216

Open
xensurve opened this issue Mar 18, 2024 · 9 comments
Open

Wayland System Tray #216

xensurve opened this issue Mar 18, 2024 · 9 comments

Comments

@xensurve
Copy link

(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
Copy link
Owner

ebruck commented Mar 23, 2024

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
Copy link

idovitz commented Mar 27, 2024

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

@xensurve
Copy link
Author

xensurve commented Mar 27, 2024

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

GDK_BACKEND=x11 radiotray-ng

@ebruck
Copy link
Owner

ebruck commented Mar 28, 2024

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
Copy link

idovitz commented Mar 29, 2024

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

@ebruck
Copy link
Owner

ebruck commented Mar 30, 2024

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

GDK_BACKEND=help radiotray-ng

@idovitz
Copy link

idovitz commented Mar 30, 2024

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
Copy link

SpyPower commented May 14, 2024

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
Copy link

milahu commented Sep 12, 2024

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 c7f5bd0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants