Closed Mershl closed 2 years ago
A quick hack fixes the issue and let's the extension work as before.
< return this.app_id && Gtk.IconTheme.get_default().has_icon(iconName) ? Gio.ThemedIcon.new(iconName) : null;
---
> return this.app_id && (Gtk.IconTheme.get_default() ? Gtk.IconTheme.get_default().has_icon(iconName) : false) ? Gio.ThemedIcon.new(iconName) : null;
Interesting enough. A nice icon is shown:
@Mershl if that fixes the issue, put in a Pull Request and I'll give it a go, and if all goes well I'll merge it.
Describe the bug
JS error is visible in log when starting strawberry player (https://github.com/strawberrymusicplayer/strawberry). Spotify does not show this issue.
Gtk.IconTheme.get_default() can return NULL. _getIcon is not handling that case.
Steps To Reproduce:
journalctl -b -p4
Logs
JS ERROR: TypeError: Gtk.IconTheme.get_default() is null
System Details: