Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
gnome-shell-extension-desktop-icons
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
Index: desktop-icons-20.10.0/fileItem.js =================================================================== --- desktop-icons-20.10.0.orig/fileItem.js +++ desktop-icons-20.10.0/fileItem.js @@ -443,7 +443,11 @@ var FileItem = GObject.registerClass({ } _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