mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5098] xreader: pdf thumbnails do not work #2878
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2878
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
To correct the problem:
It seems that Firejail prevents xplayer-thumbnailer to function.
@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.
@rusty-snake commented on GitHub (Apr 7, 2022):
Can you watch
sudo firemonso wee which sandboxes are running/started when you test this.@MikeNavy commented on GitHub (Apr 8, 2022):
Hi,
@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:
(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
@rusty-snake commented on GitHub (May 1, 2023):
Both are documented.
Does it not work at all or only when called by mate?
@rusty-snake commented on GitHub (May 1, 2023):
If I have to guess xreader-thumbnailer.profile misses a
noblacklist ${HOME}/.path/to/thumbnails.@kmk3 commented on GitHub (May 1, 2023):
@MikeNavy on May 1:
Yes, they are created by firecfg; see
man firecfg.Run
sudo firecfg --clean.@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