1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00
rofi/include
giomatfois62 75ae2a41f0
[WIP] xdg thumbnails fetching with fallback on mimetype icons (#1939)
* implemented xdg thumbnails fetching with fallback on mimetype icons for menu entries in filebrowser mode

* included original license text

* added md5 header and source file

* implemented xdg compatible thumbnail's creation

* added -preview-cmd string option to program settings

* support custom command to create images for entries with thumbnail:// prefix

* fix custom thumbnailer command crash caused by null uri when entry is not a valid filename

* check entry_name is not NULL or empty when generating thumbnails;
use snprintf to avoid static analyzer complains

* avoid using gstrvbuilder to build thumbnailer command args

* fixed static analyzer complain about always wrong condition

* use g_spawn_check_exit_status to avoid bump to glib 2.70

* removed md5-c dependency and use glib checksum implementation

* fixed meson build after md5-c library removal

* support thumbnail generation in recursivebrowser mode

* restored check rofi_icon_fetcher_file_is_image

* create thumbnail directories if not existing

* use g_malloc0, g_strdup and g_strdup_printf

* fixed formatting with clang-format

* don't wait for jobs in execution when finalizing the icon fetcher worker threadpool

* destroy and rebuild the icon fetcher worker threadpool when the current page is changed

* added query_started boolean member to IconFetcherEntry;
check if an icon fetcher query was started on an IconFetcherEntry and submit the query again otherwise

* force icon cache lookup even if the item has a valid icon_fetch_uid (the fetching job could have been discarded before starting)

* search binaries in PATH when executing thumbnailer command

* mark icon query as not started in threadpool item free_func

* added listview page_changed_callback; rebuild icon fetcher threadpool in page_changed_callback

* [listview] Add missing code documentation param

* Create rofi-thumbnails.5.markdown

* Updated documentation with apparmor issues and workaround

* [Doc] Ship rofi-thumbnails.5

With some formatting fixes

* use a more compact thumbnailer example

---------

Co-authored-by: giomatfois62 <giomatfois62@yahoo.it>
Co-authored-by: Dave Davenport <DaveDavenport@users.noreply.github.com>
Co-authored-by: lbonn <github@lbonnans.net>
2024-06-21 18:47:38 +02:00
..
modes [script|dmenu] Add option to make row permanent. 2024-02-28 20:47:18 +01:00
widgets [WIP] xdg thumbnails fetching with fallback on mimetype icons (#1939) 2024-06-21 18:47:38 +02:00
css-colors.h [Cleanup] Using clang-tidy 2021-08-18 01:16:45 +02:00
display.h Update copyright dates. 2023-01-14 13:02:35 +01:00
helper-theme.h Update copyright dates. 2023-01-14 13:02:35 +01:00
helper.h [Theme] Fix missing doxygen documentation 2023-08-15 19:34:11 +02:00
history.h Update copyright dates. 2023-01-14 13:02:35 +01:00
keyb.h I785 (#1789) 2023-01-22 17:25:17 +01:00
mode-private.h Remove unused variable. 2023-06-29 23:59:25 +02:00
mode.h [Doc] Fix some missing/wrong doxygen headers. 2023-06-12 19:40:25 +02:00
rofi-icon-fetcher.h [Window] Add -window-prefer-icon-theme option. 2022-10-22 11:03:11 +02:00
rofi-types.h Add an item-free method to the thread-pool 2024-03-01 15:28:48 +01:00
rofi.h [Doc] Fix some missing/wrong doxygen headers. 2023-06-12 19:40:25 +02:00
settings.h [WIP] xdg thumbnails fetching with fallback on mimetype icons (#1939) 2024-06-21 18:47:38 +02:00
theme.h [Theme] Try to fix importing of theme. 2023-08-15 19:12:14 +02:00
timings.h Update copyright dates. 2023-01-14 13:02:35 +01:00
view-internal.h Update copyright dates. 2023-01-14 13:02:35 +01:00
view.h Add -transient-window mode (#1988) 2024-06-09 18:57:29 +02:00
xcb-internal.h [XCB] Try to be smarter with where mouse click started. 2023-09-24 20:06:08 +02:00
xcb.h Add border_width to window coordinates (#1969) 2024-04-25 16:14:39 +02:00
xrmoptions.h Update copyright dates. 2023-01-14 13:02:35 +01:00