Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evince does not support .cbz format with certain plugin #4555

Closed
7 tasks done
lecso7 opened this issue Sep 18, 2021 · 2 comments
Closed
7 tasks done

Evince does not support .cbz format with certain plugin #4555

lecso7 opened this issue Sep 18, 2021 · 2 comments

Comments

@lecso7
Copy link
Contributor

lecso7 commented Sep 18, 2021

Description

Evince has a plugin allows user to read the archived images in .cbz format (same as .zip) used in comic books:

Its function is broken under firejail with default evince profile because libarchive need to be accessed to extract contents from the zip file. libarchive is a library enables program working with several different archive formats.

Steps to Reproduce

  1. Run firejail evince testfile.cbz
  2. cbz file can not be opened
  3. There is error from command line libarchive.so.13: cannot open ...

Expected behavior

With comics backend plugin installed, evince should display images from .cbz format.

Behavior without a profile

Without a profile, the .cbz test file can be accessed.

Environment

  • Firejail version 0.9.66

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of firejail /path/to/program

...
(evince:60): EvinceDocument-WARNING **: 07:05:18.125: libarchive.so.13: cannot open shared object file: No such file or directory

@lecso7
Copy link
Contributor Author

lecso7 commented Sep 18, 2021

I will fix this problem by adding libarchive support in the private-lib configurations.

@lecso7 lecso7 changed the title Evince does not support .cbz format with the plugin Evince does not support .cbz format under plugin Sep 18, 2021
@lecso7 lecso7 changed the title Evince does not support .cbz format under plugin Evince does not support .cbz format with certain plugin Sep 18, 2021
lecso7 added a commit to lecso7/firejail that referenced this issue Sep 18, 2021
Enable evince to display archived images (.cbz) file with plugin
installed.
lecso7 added a commit to lecso7/firejail that referenced this issue Sep 18, 2021
Enable evince to display archived images (.cbz) file with plugin
installed.
lecso7 added a commit to lecso7/firejail that referenced this issue Sep 18, 2021
Enable evince to display archived images (.cbz) file with plugin
installed.
@lecso7
Copy link
Contributor Author

lecso7 commented Sep 18, 2021

This issue is fixed.

@lecso7 lecso7 closed this as completed Sep 18, 2021
rusty-snake pushed a commit that referenced this issue Sep 19, 2021
Enable evince to display archived images (.cbz) file with plugin
installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant