linuxmint / blueberry

A Bluetooth configuration tool
GNU General Public License v3.0
182 stars 53 forks source link

No tray icon on Sway (Wayland) #119

Open Hubro opened 3 years ago

Hubro commented 3 years ago

The application works, but no tray icon is displayed. Log output:

(blueberry.py:278800): com.linuxmint.blueberry-WARNING **: 20:41:23.821: DE could not be detected!

(blueberry-tray.py:279597): Gtk-WARNING **: 20:41:30.044: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop

(blueberry-tray.py:279597): Gtk-CRITICAL **: 20:41:30.046: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
hensansi commented 3 years ago

I think it might be related to this issue, although I don't have enough knowledge to be sure about it, https://github.com/swaywm/sway/issues/1357

An indicator like nm-applet would be helpful

schultetwin commented 2 years ago

I believe this is the main issue:

(blueberry-tray.py:279597): Gtk-WARNING **: 20:41:30.044: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop

SwayWM will not be implementing this interface, see here:

https://github.com/swaywm/swayidle/issues/46

So I think this needs to be made optional as part of blueberry.

mtwebster commented 2 years ago

There's probably no tray icon because blueberry doesn't support the type of status icon that's probably supported in sway (probably StatusNotifier).

oniGino commented 2 years ago

FYI I fixed this in #120 though i don''t expect that patch to ever get merged as mint uses xapp heavily