gnome-directory-thumbnailer issueshttps://gitlab.gnome.org/GNOME/gnome-directory-thumbnailer/-/issues2022-12-28T19:10:24Zhttps://gitlab.gnome.org/GNOME/gnome-directory-thumbnailer/-/issues/8No longer builds after recent gnome-desktop API changes2022-12-28T19:10:24ZYanko KanetiNo longer builds after recent gnome-desktop API changesRecent gnome-desktop-3 and -4 add GCancellable and GError to the thumbnail API
so:
```
src/main.c: In function 'copy_thumbnail_from_file':
src/main.c:360:42: error: too few arguments to function 'gnome_desktop_thumbnail_factory_generate...Recent gnome-desktop-3 and -4 add GCancellable and GError to the thumbnail API
so:
```
src/main.c: In function 'copy_thumbnail_from_file':
src/main.c:360:42: error: too few arguments to function 'gnome_desktop_thumbnail_factory_generate_thumbnail'
360 | pixbuf = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, file_uri, file_mime_type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```https://gitlab.gnome.org/GNOME/gnome-directory-thumbnailer/-/issues/7no longer compiles because of GTimeVal deprecation in GLib 2.61.22022-03-08T13:23:06ZStefan Sichlerno longer compiles because of GTimeVal deprecation in GLib 2.61.2Hi,
the gnome-directory-thumbnailer no longer compiles on GLib 2.61.2 or later (as on my Ubuntu 20.04) because of deprecation warnings that are treated as errors. I attached my suggested fix for that. For me, it compiles again and seems ...Hi,
the gnome-directory-thumbnailer no longer compiles on GLib 2.61.2 or later (as on my Ubuntu 20.04) because of deprecation warnings that are treated as errors. I attached my suggested fix for that. For me, it compiles again and seems to work.
Please have a close look at the modifications. (I am _not_ an experienced GLib programmer)
**EDIT:** updated proposed patch:
[main.c.diff](/uploads/7552470ed7ef10ebbdf417a512b2729b/main.c.diff)https://gitlab.gnome.org/GNOME/gnome-directory-thumbnailer/-/issues/1Logic on generating directory thumbnails2018-10-07T10:52:40ZДилян Палаузовgit-dpa@aegee.orgLogic on generating directory thumbnailsI have the impression that a thumbnail of a folder is not generated, until the thumbnails in the folder are generated. However, failing to generate a thumbnail of a folder puts a record under .config/thumbnails/fail/gnome-thumbnail-fact...I have the impression that a thumbnail of a folder is not generated, until the thumbnails in the folder are generated. However, failing to generate a thumbnail of a folder puts a record under .config/thumbnails/fail/gnome-thumbnail-factory and until the file is deleted manually, the system does not try to generate a thumbnail of the directory.
How are thumbnails of directories supposed to be generated without deleting manually files?