[GH-ISSUE #5098] xreader: pdf thumbnails do not work #2878

Open
opened 2026-05-05 09:32:22 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @MikeNavy on GitHub (Apr 7, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5098

Hi,
When I install Firejail, PDF thumbnailing is disabled; old PDF thumbnails stay there, but when a new PDF document is created / copied, there is no thumbnail created, iust a PDF icon.

System:
Linux Mint Mate 20.3 Una (based on Ubuntu 20.04 LTS Fossa, with Mate 1.26 desktop environment).
File Manager: caja
Thumbnailer: xplayer-thumbnailer "Thumbnailer for xreader".
Firejail:
Installed version "firejail_0.9.68-apparmor_1_amd64.deb" from https://sourceforge.net/projects/firejail/files/firejail/firejail_0.9.68-apparmor_1_amd64.deb/download

The problem occurs as soon as Firejail deb is installed, even without desktop integration (no use of "$ sudo firecfg").

To reproduce the problem:

  • install Firejail,
  • open file manager,
  • copy / paste an existing PDF file,
  • the copied file has no thumbnail, just a PDF icon.

To correct the problem:

  • uninstall Firejail,
  • open file manager,
  • copy / paste an existing PDF file,
  • the copied filed has a thumbnail.

It seems that Firejail prevents xplayer-thumbnailer to function.

Originally created by @MikeNavy on GitHub (Apr 7, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5098 Hi, When I install Firejail, PDF thumbnailing is disabled; old PDF thumbnails stay there, but when a new PDF document is created / copied, there is no thumbnail created, iust a PDF icon. **System**: Linux Mint Mate 20.3 Una (based on Ubuntu 20.04 LTS Fossa, with Mate 1.26 desktop environment). File Manager: caja Thumbnailer: xplayer-thumbnailer "Thumbnailer for xreader". **Firejail**: Installed version "firejail_0.9.68-apparmor_1_amd64.deb" from [https://sourceforge.net/projects/firejail/files/firejail/firejail_0.9.68-apparmor_1_amd64.deb/download](url) The problem occurs as soon as Firejail deb is installed, even without desktop integration (no use of "$ sudo firecfg"). **To reproduce the problem**: - install Firejail, - open file manager, - copy / paste an existing PDF file, - the copied file has no thumbnail, just a PDF icon. **To correct the problem**: - uninstall Firejail, - open file manager, - copy / paste an existing PDF file, - the copied filed has a thumbnail. It seems that Firejail prevents xplayer-thumbnailer to function.
Author
Owner

@MikeNavy commented on GitHub (Apr 7, 2022):

Not sure if PDF thumbnails are made by xreader or by xplayer-thumbnailer; xplayer-thumbnailer is presented as "Thumbnailer for xreader", but it might be a typo instead of "Thumbnailer for xplayer".
Checked: PDF thumbnails are generated by "xreader-thumbnailer", part of xreader package.

<!-- gh-comment-id:1091387970 --> @MikeNavy commented on GitHub (Apr 7, 2022): Not sure if PDF thumbnails are made by xreader or by xplayer-thumbnailer; xplayer-thumbnailer is presented as "Thumbnailer for xreader", but it might be a typo instead of "Thumbnailer for xplayer". Checked: PDF thumbnails are generated by "xreader-thumbnailer", part of xreader package.
Author
Owner

@rusty-snake commented on GitHub (Apr 7, 2022):

The problem occurs as soon as Firejail deb is installed, even without desktop integration (no use of "$ sudo firecfg").

Can you watch sudo firemon so wee which sandboxes are running/started when you test this.

<!-- gh-comment-id:1092088245 --> @rusty-snake commented on GitHub (Apr 7, 2022): > The problem occurs as soon as Firejail deb is installed, even without desktop integration (no use of "$ sudo firecfg"). Can you watch `sudo firemon` so wee which sandboxes are running/started when you test this.
Author
Owner

@MikeNavy commented on GitHub (Apr 8, 2022):

Hi,

  • I completely uninstalled Firejail.
  • Then installed it again.
  • I launched no sandbox, no "sudo firecfg".
  • "sudo firemon" gives no answer, empty screen.
  • Once again I copy / paste a PDF file, the copied file has a PDF icon, not a thumbnail.
  • "sudo firemon" output still empty.
<!-- gh-comment-id:1092560953 --> @MikeNavy commented on GitHub (Apr 8, 2022): Hi, - I completely uninstalled Firejail. - Then installed it again. - I launched no sandbox, no "sudo firecfg". - "sudo firemon" gives no answer, empty screen. - Once again I copy / paste a PDF file, the copied file has a PDF icon, not a thumbnail. - "sudo firemon" output still empty.
Author
Owner

@MikeNavy commented on GitHub (May 1, 2023):

Hi,
I have finally found the root cause and solved the problem.

It seems that, in a former attempt to use Firejail, it had created symbolic links from "/usr/bin" to "/usr/local/bin".
In the links created, I could find "xreader", "xreader-thumbnailer" (xreader is the default document reader, including PDF format, for Linux Mint). The links created did not point to the original executable but to firejail: as an example, the "/usr/local/bin/xreader-thumbnailer" pointed to "/usr/bin/firejail".
I suppose that links had been created when using a "sudo firecfg"...
When Firejail is uninstalled, these symbolic links are not removed and point to non-existing firejail command, without consequence.
But as soon as Firejail is installed again, the symbolic links point to firejail command, and xreader-thumbnailer does not work any longer.

I found a workaround:

  • install symlinks, "sudo apt install symlinks"
  • open a terminal in "/usr/local/bin",
  • list dangling links with "symlinks .",
  • delete dangling links with "sudo symlinks -dr .".
    (there were some 35 dangling links pointing to firejail)

Now, when I install Firejail (0.9.72-1), without firecfg, pdf thumbnailing still works and I can use Firejail to launch some appimages (it works well with LibreOffice or BlueGriffon appimages, not with Squishpic one).

This creation of symbolic links pointing to firejail should be documented (is it a consequence of firecfg?), and a way to recover original links or to delete links should exist. Note that, with the links and Firejail installed, xreader-thumbnailer does not work, there is a confirmed bug.

Regards,

MN

<!-- gh-comment-id:1529922163 --> @MikeNavy commented on GitHub (May 1, 2023): Hi, I have finally found the root cause and solved the problem. It seems that, in a former attempt to use Firejail, it had created symbolic links from "/usr/bin" to "/usr/local/bin". In the links created, I could find "xreader", "xreader-thumbnailer" (xreader is the default document reader, including PDF format, for Linux Mint). The links created did not point to the original executable but to firejail: as an example, the "/usr/local/bin/xreader-thumbnailer" pointed to "/usr/bin/firejail". I suppose that links had been created when using a "sudo firecfg"... When Firejail is uninstalled, these symbolic links are not removed and point to non-existing firejail command, without consequence. But as soon as Firejail is installed again, the symbolic links point to firejail command, and xreader-thumbnailer does not work any longer. I found a workaround: - install symlinks, "sudo apt install symlinks" - open a terminal in "/usr/local/bin", - list dangling links with "symlinks .", - delete dangling links with "sudo symlinks -dr .". (there were some 35 dangling links pointing to firejail) Now, when I install Firejail (0.9.72-1), without firecfg, pdf thumbnailing still works and I can use Firejail to launch some appimages (it works well with LibreOffice or BlueGriffon appimages, not with Squishpic one). This creation of symbolic links pointing to firejail should be documented (is it a consequence of firecfg?), and a way to recover original links or to delete links should exist. Note that, with the links and Firejail installed, xreader-thumbnailer does not work, there is a confirmed bug. Regards, MN
Author
Owner

@rusty-snake commented on GitHub (May 1, 2023):

This creation of symbolic links pointing to firejail should be documented (is it a consequence of firecfg?), and a way to recover original links or to delete links should exist.

Both are documented.

xreader-thumbnailer does not work, there is a confirmed bug.

Does it not work at all or only when called by mate?

<!-- gh-comment-id:1529970242 --> @rusty-snake commented on GitHub (May 1, 2023): > This creation of symbolic links pointing to firejail should be documented (is it a consequence of firecfg?), and a way to recover original links or to delete links should exist. Both are documented. > xreader-thumbnailer does not work, there is a confirmed bug. Does it not work at all or only when called by mate?
Author
Owner

@rusty-snake commented on GitHub (May 1, 2023):

If I have to guess xreader-thumbnailer.profile misses a noblacklist ${HOME}/.path/to/thumbnails.

<!-- gh-comment-id:1529972803 --> @rusty-snake commented on GitHub (May 1, 2023): If I have to guess xreader-thumbnailer.profile misses a `noblacklist ${HOME}/.path/to/thumbnails`.
Author
Owner

@kmk3 commented on GitHub (May 1, 2023):

@MikeNavy on May 1:

This creation of symbolic links pointing to firejail should be documented (is
it a consequence of firecfg?)

Yes, they are created by firecfg; see man firecfg.

and a way to recover original links or to delete links should exist.

Run sudo firecfg --clean.

<!-- gh-comment-id:1530097916 --> @kmk3 commented on GitHub (May 1, 2023): @MikeNavy [on May 1](https://github.com/netblue30/firejail/issues/5098#issuecomment-1529922163): > This creation of symbolic links pointing to firejail should be documented (is > it a consequence of firecfg?) Yes, they are created by firecfg; see `man firecfg`. > and a way to recover original links or to delete links should exist. Run `sudo firecfg --clean`.
Author
Owner

@MikeNavy commented on GitHub (May 2, 2023):

Hi,
@rusty-snake
Normally, pdf thumbnails are automatically created when I open a directory where pdf files are found, using Mate file manager, Caja.
When the symlinks are there and Firejail installed, thumbnails creation does not work.
When the symlinks are there and Firejail not installed, thumbnails creation does work.
When the symlinks are not there (removed) and Firejail installed, thumbnails creation does work.
Yes, something is probably wrong in xreader-thumbnailer profile. Path to thumbnails is "~/.cache/thumbnails" on my computer (Linux Mint 20.3, based on Ubuntu 20.04).

@kmk3
I had thought that uninstalling Firejail deb and its configuration files would have been enough, I understand now that, if the symlinks have been ceated after installation, they cannot be removed such a way. I have tested "sudo firecfg" followed by "sudo firecfg --clean", symlinks are created with the 1st command and removed with the 2nd one.

Regards,

MN

<!-- gh-comment-id:1530963724 --> @MikeNavy commented on GitHub (May 2, 2023): Hi, @rusty-snake Normally, pdf thumbnails are automatically created when I open a directory where pdf files are found, using Mate file manager, Caja. When the symlinks are there and Firejail installed, thumbnails creation does not work. When the symlinks are there and Firejail not installed, thumbnails creation does work. When the symlinks are not there (removed) and Firejail installed, thumbnails creation does work. Yes, something is probably wrong in xreader-thumbnailer profile. Path to thumbnails is "~/.cache/thumbnails" on my computer (Linux Mint 20.3, based on Ubuntu 20.04). @kmk3 I had thought that uninstalling Firejail deb and its configuration files would have been enough, I understand now that, if the symlinks have been ceated after installation, they cannot be removed such a way. I have tested "sudo firecfg" followed by "sudo firecfg --clean", symlinks are created with the 1st command and removed with the 2nd one. Regards, MN
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2878
No description provided.