Skip to content

Commit

Permalink
contrib/thumb: fix thunar thumbnailer (rhbz#2315893)
Browse files Browse the repository at this point in the history
For thunar, the path is ~/.local/share/thumbnails.
  • Loading branch information
mochaaP committed Oct 3, 2024
1 parent 04bacae commit 0cb9a0f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion policy/modules/contrib/thumb.fc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
HOME_DIR/\.thumbnails(/.*)? gen_context(system_u:object_r:thumb_home_t,s0)
HOME_DIR/\.thumbnails(/.*)? gen_context(system_u:object_r:thumb_home_t,s0)
HOME_DIR/\.cache/thumbnails(/.*)? gen_context(system_u:object_r:thumb_home_t,s0)
HOME_DIR/\.local/share/thumbnails(/.*)? gen_context(system_u:object_r:thumb_home_t,s0)
HOME_DIR/missfont\.log.* gen_context(system_u:object_r:thumb_home_t,s0)

/usr/bin/evince-thumbnailer -- gen_context(system_u:object_r:thumb_exec_t,s0)
Expand Down
1 change: 1 addition & 0 deletions policy/modules/contrib/thumb.if
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@ interface(`thumb_filetrans_home_content',`

optional_policy(`
gnome_cache_filetrans($1, thumb_home_t, dir, "thumbnails")
gnome_data_filetrans($1, thumb_home_t, dir, "thumbnails")
')
')
10 changes: 5 additions & 5 deletions policy/modules/contrib/thumb.te
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ optional_policy(`
')

optional_policy(`
dbus_exec_dbusd(thumb_t)
dbus_connect_session_bus(thumb_t)
dbus_exec_dbusd(thumb_t)
dbus_connect_session_bus(thumb_t)
dbus_stream_connect_session_bus(thumb_t)
dbus_chat_session_bus(thumb_t)
dbus_system_bus_client(thumb_t)
Expand All @@ -160,16 +160,16 @@ optional_policy(`
# .config
gnome_dontaudit_search_config(thumb_t)
gnome_dontaudit_write_config_files(thumb_t)
gnome_append_home_config(thumb_t)
gnome_append_home_config(thumb_t)
gnome_append_generic_cache_files(thumb_t)
gnome_read_generic_data_home_files(thumb_t)
gnome_dontaudit_rw_generic_cache_files(thumb_t)
gnome_manage_gstreamer_home_files(thumb_t)
gnome_manage_gstreamer_home_dirs(thumb_t)
gnome_exec_gstreamer_home_files(thumb_t)
gnome_create_generic_cache_dir(thumb_t)
gnome_setattr_cache_home_dir(thumb_t)
gnome_delete_generic_cache_files(thumb_t)
gnome_setattr_cache_home_dir(thumb_t)
gnome_delete_generic_cache_files(thumb_t)
gnome_cache_filetrans(thumb_t, thumb_home_t, dir, "thumbnails")
gnome_cache_filetrans(thumb_t, thumb_home_t, file)
')
Expand Down

0 comments on commit 0cb9a0f

Please sign in to comment.