Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
gnome-shell-extension-desktop-icons.18936
desktop-icons-show-iso-file-icon.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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 });
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor