orontee / argos

Light weight front-end for Mopidy music server
GNU General Public License v3.0
24 stars 4 forks source link

gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'media-optical' not present in theme Adwaita (0) #157

Closed kingosticks closed 11 months ago

kingosticks commented 11 months ago

I installed the latest deb release on my Ubuntu 22.04LTS system and I get the following traceback when trying to start argos

nsteel@NSTEEL3:~$ argos
Traceback (most recent call last):
  File "/usr/bin/argos", line 50, in <module>
    from argos.app import Application
  File "/usr/share/argos/argos/app.py", line 32, in <module>
    from argos.widgets import (
  File "/usr/share/argos/argos/widgets/__init__.py", line 2, in <module>
    from argos.widgets.albumdetailsbox import AlbumDetailsBox
  File "/usr/share/argos/argos/widgets/albumdetailsbox.py", line 30, in <module>
    class AlbumDetailsBox(Gtk.Box):
  File "/usr/share/argos/argos/widgets/albumdetailsbox.py", line 42, in AlbumDetailsBox
    default_album_image = default_image_pixbuf(
  File "/usr/share/argos/argos/widgets/utils.py", line 30, in default_image_pixbuf
    pixbuf = Gtk.IconTheme.get_default().load_icon(icon_name, max_size, 0)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'media-optical' not present in theme Adwaita (0)

Is this me, or is the app not supported on the current Ubuntu LTS release?

EDIT: This is actually Ubuntu 22.04 on WSL2... Can I use Flatpak instead here?

orontee commented 11 months ago

Thanks for your report! I'll have a look in a couple of days.

@kingosticks Last time I checked Flatpak under WSL2 was working quite well.

orontee commented 11 months ago

Sorry, dunno why this is closed!

orontee commented 11 months ago

@kingosticks Do you have the gnome-icon-theme package installed? If not can you install it and retry?

I should have declared this dependency in the deb package...

orontee commented 11 months ago

I don't have a Windows box at hand but on a Linux box, I created a virtual machine running Ubuntu 22.04 LTS. There I performed:

$ sudo apt install -yf ~/Téléchargements/argos_1.12.0-1_all.deb > /dev/null
$ argos

And... everything went fine...

But I see that gnome-icon-theme is there but wasn't explicitly installed:

$ ubuntu@ubuntu2204:~$ sudo apt show gnome-icon-theme
Package: gnome-icon-theme
Version: 3.12.0-4
Priority: optional
Section: universe/gnome
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Josselin Mouette <joss@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15,5 MB
Depends: hicolor-icon-theme, gtk-update-icon-cache, librsvg2-common
Enhances: nautilus (>= 2.2)
Task: ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop
Download-Size: 9\u202f618 kB
APT-Sources: http://fr.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: Th\u00e8me d'ic\u00f4nes pour le bureau GNOME
 Ce paquet contient le th\u00e8me d'ic\u00f4nes par d\u00e9faut utilis\u00e9 par le bureau
 GNOME. Elles sont utilis\u00e9es dans le panneau de menu, dans Nautilus et
 d'autres applications pour repr\u00e9senter les diff\u00e9rentes applications,
 fichiers, r\u00e9pertoires et p\u00e9riph\u00e9riques.
kingosticks commented 11 months ago

Sorry, it's my work machine and I've not been back on it yet. I imagine the WSL's Ubuntu doesn't come with the same default packages w.r.t to UI. But it looks like the dependency is real so should be added.

orontee commented 11 months ago

I just released 1.13.0 with updated dependencies. I must confess I've not carefully checked that there was no other missing dependency when installing from a bare distribution... Let's reopen this if I was too confident!

kingosticks commented 11 months ago

Yep! That did it.