Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-04-20 10:11:23

chdslv
Member
Registered: 2015-09-26
Posts: 15

[SOLVED]Thunar doesn't show xbm images as thumbnails

Thunar doesn't show .xbm images as thumbnails. How to enable it?

Last edited by chdslv (2021-04-21 09:22:07)

Offline

#2 2021-04-20 12:05:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,006

Re: [SOLVED]Thunar doesn't show xbm images as thumbnails

The gdk-pixbuf thumbnailer is supposed to provide xmb thumbnails:

$ xdg-mime query filetype circles.xbm 
image/x-xbitmap

$ fgrep -ri bitmap /usr/share/thumbnailers/ | awk -F':' '{print $1}'
/usr/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer

... but it doesn't seem to work. I'm not sure if the issue is with tumbler or with gdk-pixbuf.

Assuming tumbler version at least 0.2.0, you could create a desktop thumbnailer file and grant it highest priority - this will make it work. To do so:

  1. Create the file /usr/share/thumbnailers/xbm.thumbnailer with the following content:

    [Thumbnailer Entry]
    Version=1.0
    Encoding=UTF-8
    Type=X-Thumbnailer
    Name=xbm Thumbnailer
    MimeType=image/x-xbitmap;
    Exec=/usr/bin/convert -thumbnail %s %i %o

    ...note that the imagemagick package needs to be installed for the convert command.

  2. Copy /etc/xdg/tumbler/tumbler.rc to ~/.config/tumbler (create the directory if it doesn't exist)

  3. Change the priority the "DesktopThumbnailer" entry to 3 (so it looks like):

    # thumbnailers provided by .thumbnailer desktop files
    [DesktopThumbnailer]
    Disabled=false
    Priority=3
    Locations=
    Excludes=
    MaxFileSize=2147483648
  4. You need to restart tumbler and thunar - probably easiest to log out and back in again.

To properly fix this, you might want to start with a tumbler bug report but it might be an issue with gdk-pixbuf.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-04-20 13:15:39

chdslv
Member
Registered: 2015-09-26
Posts: 15

Re: [SOLVED]Thunar doesn't show xbm images as thumbnails

Thanks. I did all that, but it didn't work.
This is Arch Linux and the system is Openbox. But, on XFCE too xbm files couldn't be seen, bug reports had been placed.

Last edited by chdslv (2021-04-20 13:45:06)

Offline

#4 2021-04-20 16:48:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,006

Re: [SOLVED]Thunar doesn't show xbm images as thumbnails

chdslv wrote:

Thanks. I did all that, but it didn't work.
This is Arch Linux and the system is Openbox. But, on XFCE too xbm files couldn't be seen, bug reports had been placed.

I did all my testing on Arch linux and it does work. As a sanity check, can you post back the following:

xdg-mime query filetype FILE.xbm

...where "FILE.xbm" is the name of the xbm file.

cat /usr/share/thumbnailers/xbm.thumbnailer
cat ~/.config/tumbler/tumbler.rc
which convert
ps -ef | grep tumblerd

Also maybe reboot just to be sure (some Xfce processes remaining running if you just log out.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-04-21 09:21:30

chdslv
Member
Registered: 2015-09-26
Posts: 15

Re: [SOLVED]Thunar doesn't show xbm images as thumbnails

I got it working, thanks!
Reinstalled tumbler and gdk-pixbuf2. https://gitlab.xfce.org/xfce/tumbler/-/ … note_30616

Last edited by chdslv (2021-04-21 09:24:20)

Offline

Board footer

Powered by FluxBB