- Add desktop-icons-show-iso-file-icon.patch: Show ISO file icon as default icon. (bsc#1183504 glgo#GNOME/World/ShellExtensions/desktop-icons!196) - Drop desktop-icons-fix-version-match.patch: Replaced by desktop-icon-gnome-40.patch. - Add desktop-icons-fix-version-match.patch: Match shell version under strict version checking (bsc#1176911). OBS-URL: https://build.opensuse.org/request/show/910260 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extension-desktop-icons?expand=0&rev=13
18 lines
807 B
Diff
18 lines
807 B
Diff
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 });
|