Komorebi-Fork / komorebi

A beautiful and customisable wallpaper manager for Linux
GNU General Public License v3.0
271 stars 17 forks source link

[BUG]: Missing icons from user's selected theme cause Komorebi to crash #90

Closed Kangie closed 4 months ago

Kangie commented 4 months ago

What I did

PYTHONPATH="/usr/local/lib/python3.11/site-packages:${PATH}" python3.11 /usr/local/bin/komorebi --log=DEBUG

What I Got

Welcome to komorebi
[INFO] (13:19:20): Wayland detected. Wayland support is Experimental!
[INFO] (13:19:20): Contribute to Komorebi and add the support! <3
[DEBUG] (13:19:21): GtkClutter initialized
[INFO] (13:19:21): Loading configuration...
[DEBUG] (13:19:21): Config dir is "/home/kangie/.config/komorebi"
[DEBUG] (13:19:21): Reading config file...
[DEBUG] (13:19:21): Configuration file read
[INFO] (13:19:21): loading Gst
[DEBUG] (13:19:21): Gst initialized
[INFO] (13:19:21): Monitor Count - 3
[INFO] (13:19:21): Initializing clipboard...
[DEBUG] (13:19:21): Initializing background window for monitor 0...
[DEBUG] (13:19:21): 0 - Rectangle geometry: x=2560 y=705 w=2560 h=1440
[DEBUG] (13:19:21): 0 - Setting window properties...
[DEBUG] (13:19:21): Loading BubbleMenu...
[DEBUG] (13:19:21): Loaded BubbleMenu
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Change Wallpaper")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Desktop Preferences")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Exit komorebi")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing background window for monitor 1...
[DEBUG] (13:19:21): 1 - Rectangle geometry: x=5120 y=0 w=1440 h=2560
[DEBUG] (13:19:21): 1 - Setting window properties...
[DEBUG] (13:19:21): Loading BubbleMenu...
[DEBUG] (13:19:21): Loaded BubbleMenu
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Change Wallpaper")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Desktop Preferences")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Exit komorebi")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing background window for monitor 2...
[DEBUG] (13:19:21): 2 - Rectangle geometry: x=0 y=705 w=2560 h=1440
[DEBUG] (13:19:21): 2 - Setting window properties...
[DEBUG] (13:19:21): Loading BubbleMenu...
[DEBUG] (13:19:21): Loaded BubbleMenu
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Change Wallpaper")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Desktop Preferences")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Initializing BubbleMenuItem(text="Exit komorebi")
[DEBUG] (13:19:21): Initialized BubbleMenuItem
[DEBUG] (13:19:21): Loading PreferencesWindow...
[DEBUG] (13:19:21): Loading WallpapersSelector..
[DEBUG] (13:19:21): Loaded WallpapersSelector...
[DEBUG] (13:19:21): Loaded PreferencesWindow
[DEBUG] (13:19:21): Loading ImageWallpaper...
[DEBUG] (13:19:21): Loaded ImageWallpaper
[DEBUG] (13:19:21): Loading Clock...
[DEBUG] (13:19:21): Loaded Clock
[DEBUG] (13:19:21): Loading Asset...
[DEBUG] (13:19:21): Loaded Asset
[DEBUG] (13:19:21): Loading Desktop...
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/komorebi/utilities.py", line 169, in get_icon_from
    iconPixbuf = iconTheme.load_icon(icon, icon_size, Gtk.IconLookupFlags.FORCE_SIZE)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'text-x-script-symbolic' not present in theme breeze-dark (0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/komorebi", line 162, in <module>
    main()
  File "/usr/local/bin/komorebi", line 152, in main
    screen.load_wallpaper(Settings.wallpaper_name)
  File "/usr/local/lib/python3.11/site-packages/komorebi/screen.py", line 162, in load_wallpaper
    overlays = komorebi.utilities.load_overlays(self, wallpaper_info)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/komorebi/utilities.py", line 131, in load_overlays
    overlays.append(Desktop(screen))
                    ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/komorebi/overlays/desktop.py", line 496, in __init__
    self.get_desktops()
  File "/usr/local/lib/python3.11/site-packages/komorebi/overlays/desktop.py", line 637, in get_desktops
    self.grab_desktop_paths()
  File "/usr/local/lib/python3.11/site-packages/komorebi/overlays/desktop.py", line 693, in grab_desktop_paths
    icon_pixbuf = komorebi.utilities.get_icon_from(icon_path, self.icon_size)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/komorebi/utilities.py", line 172, in get_icon_from
    iconPixbuf = iconTheme.load_icon('application-default-icon', icon_size, Gtk.IconLookupFlags.FORCE_SIZE)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'application-default-icon' not present in theme breeze-dark (0)
[DEBUG] (13:19:21): Unloaded ImageWallpaper
[DEBUG] (13:19:21): Unloaded Desktop

What I Expected

Komorebi to substitute the missing icon.

System Info

PYTHONPATH="/usr/local/lib/python3.11/site-packages:${PATH}" python3.11 /usr/local/bin/komorebi --version  
Welcome to komorebi
Version: 3.0.0 Maintained by: Komorebi Team