File desktop-icons-show-iso-file-icon.patch of Package gnome-shell-extension-desktop-icons.18936

diff --git a/fileItem.js b/fileItem.js
index 9ab93ce..542f066 100644
--- a/fileItem.js
+++ b/fileItem.js
@@ -408,7 +408,11 @@ var FileItem = class {
     }
 
     _createEmblemedStIcon(icon, iconName) {
-        if (icon == null) {
+        if (icon != null) {
+            let theme = Gtk.IconTheme.get_default();
+            if (theme.lookup_by_gicon(icon, null, Gtk.IconLookupFlags.GENERIC_FALLBACK) == null)
+                icon = Gio.ThemedIcon.new_with_default_fallbacks('text-x-generic');
+        } else {
             if (GLib.path_is_absolute(iconName)) {
                 let iconFile = Gio.File.new_for_commandline_arg(iconName);
                 icon = new Gio.FileIcon({ file: iconFile });
openSUSE Build Service is sponsored by