! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Can't disable thumbnails for specific formats in "tumbler.rc"
Status:
RESOLVED: INVALID
Product:
Tumbler
Component:
General

Comments

Description Jean-Philippe Fleury 2019-11-01 19:44:28 CET
Using tumbler 0.2.7 on Xubuntu 19.10, I try to disable thumbnails for specific formats, but it doesn't work. Here's what I tried (there are probably several unnecessary steps, but I just wanted to be sure there was an issue before reporting it):

1) I deleted these packages:

    libtumbler-1-0 (0.2.7-2)
    tumbler (0.2.7-2)
    tumbler-common (0.2.7-2)
    tumbler-plugins-extra (0.2.7-2)

2) I stopped this process:

    /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd

3) I closed Thunar:

    thunar -q

4) I deleted thumbnails:

    rm -rf ~/.cache/thumbnails/

5) I restarted Thunar.

I confirm that tumbler is fully removed and it no longer runs. No thumbnails are generated in Thunar. So let's configure tumbler before reinstalling it:

1) I closed Thunar:

    thunar -q

1) I created the following file:

    ~/.config/tumbler/tumbler.rc

2) I put the following content:

    # PDF/PS thumbnailer
    [PopplerThumbnailer]
    Disabled=true
    Priority=1
    Locations=
    MaxFileSize=209715200

    # Open document thumbnailer (ODF)
    [OdfThumbnailer]
    Disabled=true
    Priority=1
    Locations=
    MaxFileSize=209715200

3) I installed the previously removed packages.

4) I restarted Thunar.

Result: PDF and ODT thumbnails are generated even if the config file clearly specifies "Disabled=true".
Comment 1 Theo Linkspfeifer editbugs 2019-11-01 21:54:17 CET
What output do you get when running tumblerd from a terminal window? I am pretty sure that Xubuntu has atril-thumbnailer installed for PDF thumbnail creation.
Comment 2 Jean-Philippe Fleury 2019-11-02 17:19:31 CET
Output:

$ /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
Registered thumbnailer gnome-thumbnail-font --size %s %u %o
Registered thumbnailer atril-thumbnailer -s %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer /usr/bin/ooo-thumbnailer %i %o %s
Comment 3 Theo Linkspfeifer editbugs 2019-11-02 17:58:24 CET
You do have atril-thumbnailer and ooo-thumbnailer which both belong to the following category:

# thumnailers provided by .thumbnailer desktop files
[DesktopThumbnailer]
...
Comment 4 Jean-Philippe Fleury 2019-11-02 19:13:49 CET
Thanks a lot. It works.

For anyone looking at this report and experiencing the same problem, note that the service tumblerd may restart itself after stopping it, or some other service or software may restart it, and cause the thumbnails to be still generated even after disabling them in the config file because old settings were loaded again before changes.

Instead of logging out and logging in from my session, I just delete tumbler before configuring it (so I'm sure nothing will be automatically restarted and use the config file before I edit it). I reinstall tumbler after changes.

Also, note that disabling only "DesktopThumbnailer" is not sufficient, we still have to disable "PopplerThumbnailer" and "OdfThumbnailer" explicitly.

####################
# This WON'T work:
####################

$ sudo apt-get remove libtumbler-1-0 tumbler tumbler-common tumbler-plugins-extra
$ pkill -u $(whoami) -f "/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd"
$ thunar -q
$ rm -rf ~/.cache/thumbnails
$ cat ~/.config/tumbler/tumbler.rc
# thumnailers provided by .thumbnailer desktop files
[DesktopThumbnailer]
Disabled=true
Priority=1
Locations=
MaxFileSize=2147483648
$ sudo apt-get install libtumbler-1-0 tumbler tumbler-common tumbler-plugins-extra
$ /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd &

####################
# This WILL work:
####################

$ sudo apt-get remove libtumbler-1-0 tumbler tumbler-common tumbler-plugins-extra
$ pkill -u $(whoami) -f "/usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd"
$ thunar -q
$ rm -rf ~/.cache/thumbnails
$ cat ~/.config/tumbler/tumbler.rc
# PDF/PS thumbnailer
[PopplerThumbnailer]
Disabled=true
Priority=1
Locations=
MaxFileSize=209715200
# Open document thumbnailer (ODF)
[OdfThumbnailer]
Disabled=true
Priority=1
Locations=
MaxFileSize=209715200
# thumnailers provided by .thumbnailer desktop files
[DesktopThumbnailer]
Disabled=true
Priority=1
Locations=
MaxFileSize=2147483648
$ sudo apt-get install libtumbler-1-0 tumbler tumbler-common tumbler-plugins-extra
$ /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd &

Bug #16112

Reported by:
Jean-Philippe Fleury
Reported on: 2019-11-01
Last modified on: 2019-11-02

People

Assignee:
Ali Abdallah
CC List:
1 user

Version

Attachments

Additional information