summaryrefslogtreecommitdiff
path: root/tumblerd
Commit message (Collapse)AuthorAgeFilesLines
* Fix some priority issuesGaël Bonithon2021-12-122-9/+4
| | | | | | | | | * Preserve the directory order in $XDG_DATA_DIRS and the priority of $XDG_DATA_HOME over $XDG_DATA_DIRS for desktop thumbnailers. * Fix some logical errors in `tumbler_registry_compare()`. * Keep the priority of the pixbuf thumbnailer plugin higher than that of the desktop thumbnailer plugin by default in `tumbler.rc` (it was lowered in 6935184665902097511db1708eaaf78015ff61ac).
* pixbuf-thumbnailer: Use a mime-type-specific loader when possibleGaël Bonithon2021-12-111-4/+5
| | | | | | | | | | | | | | | | This allows to fully use the capabilities of the specific pixbuf loader for the considered mime type according to the installed optional libraries. This is especially necessary to load some SVG or HEIF thumbnails. On the other hand, if this specific loader doesn't work properly, it may be even more noticeable. This is the case for libopenraw, for which a dedicated plugin using another API has fortunately been implemented. So we just have to prioritize it in `tumbler.rc`. Fixes #20, #32, #36, see !18 for more details. Co-authored-by: @Krifa75 (Gitlab ID)
* Fix warnings from scan-build (Clang 13.0)Gaël Bonithon2021-12-111-1/+1
|
* Fix compilation warningsGaël Bonithon2021-11-108-85/+31
|
* Support shared thumbnail repositories of the freedesktop.org thumbnail specSergios - Anestis Kefalidis2021-07-242-118/+4
| | | | | | | Related: https://gitlab.xfce.org/xfce/libxfce4util/-/merge_requests/18 https://gitlab.xfce.org/xfce/thunar/-/merge_requests/126 https://gitlab.xfce.org/xfce/thunar/-/issues/262
* Remove GSourceFunc castsOlaf Hering2020-12-231-4/+4
| | | | | | Convert the callback into a real GSourceFunc. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* Remove GLIB_CHECK_VERSION IFDEFs which are obsolete after glib bumpAlexander Schwinn2020-12-152-20/+0
| | | Current glib minimum is 2.50.0
* Merge branch 'OlivierDuchateau/tumbler-gepub-thumbnailer'Ali Abdallah2020-11-151-0/+8
|\
| * Add libgepub thumbnailer pluginOlivier Duchateau2020-11-051-0/+8
| |
* | Fix documentation URLOlivierDuchateau2020-11-101-1/+1
|/
* Merge branch 'OlivierDuchateau/tumbler-GTimeVal-deprecation'Ali Abdallah2020-08-111-32/+5
|\
| * Drop support of GLib < 2.32Olivier Duchateau2020-08-091-29/+0
| |
| * Fix GTimeVal deprecationOlivier Duchateau2020-08-091-3/+5
| |
* | tumbler.rc: (trivial) fix spelling errorRobby Workman2020-08-111-2/+2
|/
* Use guint32 for request handleAli Abdallah2020-05-176-25/+25
| | | | | | | As the D-Bus data type "u" indicates 32 bit unsigned integer, explicily use guint32 instead of guint. See Bug #16833 for more details.
* Fix type of handle and handle further occurrences of 0Anton Danilkin2020-05-101-1/+3
|
* Fix handles starting from zeroafdw2020-05-081-1/+1
|
* This commit implements Excludes pathsAli Abdallah2020-05-012-1/+23
| | | | | Any path found in a plugin Excludes will be ignored, code contributed by Markus Kolb xfce@tower-net.de Bug #16130.
* Fix typoAndre Miranda2019-11-021-1/+1
|
* Fix g_type_class_add_private is deprecatedAndre Miranda2019-04-161-8/+2
|
* Set Max file sizes.Ali Abdallah2018-11-131-9/+9
| | | | 2 Gb for video files and 200 Mb for photo/pdf files.
* Check for sparse video files only on plugin side.Ali Abdallah2018-10-211-56/+26
| | | | Move the sparse video files check to ffmpeg and gstreamer plugins.
* Test sparse files only on regular onesAli Abdallah2018-09-121-6/+7
| | | | This commit fixes #14693 to allow thumbnailing of folders.
* Fix uninitialized variableOlivier Duchateau2018-09-111-1/+1
| | | | Signed-off-by: Ali Abdallah <ali@xfce.org>
* Added stat check to try to skip sparse files.Ali Abdallah2018-09-081-1/+31
| | | | | | | | | | | | | | | | Sparse files, especially sparse video files, cause high cpu and memory load when trying to get a thumbnail image out of them, using gst or ffmpeg plugins. For non sparse files, usually ((double)S_BLKSIZE * sb.st_blocks / sb.st_size) = 1.0, but this is not always true, for example on file systems that support compression, the ratio can be lower (ex. on ZFS), but not by too much for already compressed video and image files. We assume video files with ratio lower than 0.8 to be sparse and we avoid them. Video files with ratio higher than 0.8 usually have enough valid video frames, so getting a thumbnail out of them always succeeds. This commit should fix bug #12259.
* Fix wrong variant signature in g_variant_get.Ali Abdallah2017-07-171-1/+1
|
* Don't ref the variant before sending a signal and let itAli Abdallah2017-07-171-20/+13
| | | | be consumed by the gdbus signal emission.
* On some systems $XDG_DATA_HOME can have duplicated pathAli Abdallah2017-06-071-3/+26
| | | | | | | | | (ex. '/usr/share' twice). This causes tumbler to load a specilized thumbnailer twice causing an assertion failure in tumbler_manager_load_thumbnailer. Use GHashTable to record already loaded path to avoid the issue, fix #13618.
* Missing entry in tumbler.rc for the new desktop thumbnailers plugin.tumbler-0.1.92.1Ali Abdallah2017-05-281-0/+7
|
* Fix typo in tumbler.rcUnit 1932017-05-161-1/+1
| | | | Signed-off-by: Ali Abdallah <aliovx@gmail.com>
* Fix a couple of compile warnings caused by return voidAli Abdallah2017-05-113-6/+6
| | | | with g_return_if_fail in functions returing boolean.
* Pass &s to g_variant_get to get only a pointer to the serialisedAli Abdallah2015-11-011-2/+2
| | | | data.
* Fixed a typo in g_variant_is_of_type.Ali Abdallah2015-10-143-30/+30
| | | | Indentation prob also is fixed.
* Porting the specialized thumbnailer to gdbusAli Abdallah2015-10-1010-214/+178
| | | | | | Getting rid of all dbus-glib api Tumbler is now dbus-glib free!
* Port the caching service to gbus.Ali Abdallah2015-10-105-193/+208
|
* Port tumbler-service to gdbus.Ali Abdallah2015-10-106-365/+312
| | | | | Also get rid of some dbus low level code in favor of their gdbus equivalents.
* Start porting some code from dbus-glib.Ali Abdallah2015-10-085-132/+136
| | | | | | | | TumblerManager object which exports the interface 'org.freedesktop.thumbnails.Manager1' is almost dbus-glib free now. There is still only a dbus-glib legacy_connection used for the TumblerSpecializedThumbnailer, which will go away one that object is ported.
* Send the cache operation replies after they are completed.Nick Schermer2013-07-281-15/+23
| | | | | | The reply was send when the operation was queued, but this does not allow applications to properly handle new thumbs after a copy/move operation.
* Revert "Extra debug check."Nick Schermer2013-05-051-2/+0
| | | | This reverts commit 472f842d2661ba506fd831d8b6fafa7474164989.
* Extra debug check.Nick Schermer2013-05-051-0/+2
|
* Set nice value of tumblerd to 19 (bug #9627).Nick Schermer2013-05-051-0/+8
|
* Put thread lock outside loop.Nick Schermer2013-05-051-4/+4
| | | | Maybe safer since there are some strange segfaults in this region.
* Don't recalculate the length of the array.Nick Schermer2013-05-051-2/+2
| | | | Instead check the object.
* Add some additional debug checks.Nick Schermer2013-05-041-2/+10
|
* Fix deprecating warning with glib 2.36.Nick Schermer2013-05-041-0/+2
|
* Add wiki url.Nick Schermer2012-12-271-0/+2
|
* Add config file system to control thumbnailing plugin.Nick Schermer2012-12-274-15/+357
| | | | | | Settings that allow to change the plugin priority, max file size to act on, white-listed locations or completely disable them.
* Plug small leak.Nick Schermer2012-12-081-0/+1
|
* Release lifecycle manager during early exit.Nick Schermer2012-12-082-36/+11
|
* Don't abort with warnings in debug mode.Nick Schermer2012-12-081-1/+1
| | | | Makes debugging a bit hard, criticals is enough.