[GH-ISSUE #4145] firejail doesn't work automatically with gnome-books #2550

Closed
opened 2026-05-05 09:13:33 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Tus1688 on GitHub (Mar 27, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4145

OS: Ubuntu 20.04.2 LTS
I am sorry if you found this question funny. I have been using firejail for a month, and I have never found any issue with app from apt repository. Today, I install gnome-books then do sudo firecfg to reconfigure, then relog.

I open gnome-books, I did firejail --list and gnome-books didn't show up. but when I do firejail gnome-books it's work like usual. Before I open an issue here, I have read firejail wiki. Unfortunately, I don't understand what is symlink is. Thanks in advance for your kindly help

Originally created by @Tus1688 on GitHub (Mar 27, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4145 OS: Ubuntu 20.04.2 LTS I am sorry if you found this question funny. I have been using firejail for a month, and I have never found any issue with app from apt repository. Today, I install gnome-books then do sudo firecfg to reconfigure, then relog. I open gnome-books, I did `firejail --list` and gnome-books didn't show up. but when I do `firejail gnome-books` it's work like usual. Before I open an issue here, I have read firejail wiki. Unfortunately, I don't understand what is symlink is. Thanks in advance for your kindly help
Author
Owner

@rusty-snake commented on GitHub (Mar 27, 2021):

If the symlink is properly configured, you should get something like

$ ls -l "$(command -v gnome-books)"
lrwxrwxrwx. 1 root root … /usr/local/bin/gnome-books -> /usr/bin/firejail

then it's likely duplicated of #2624.

EDIT: workaround like in bd97615082

<!-- gh-comment-id:808703765 --> @rusty-snake commented on GitHub (Mar 27, 2021): If the symlink is properly configured, you should get something like ``` $ ls -l "$(command -v gnome-books)" lrwxrwxrwx. 1 root root … /usr/local/bin/gnome-books -> /usr/bin/firejail ``` then it's likely duplicated of #2624. EDIT: workaround like in https://github.com/netblue30/firejail/commit/bd976150825d98f2cd1f2a96cd0f6677cac4b671
Author
Owner

@Tus1688 commented on GitHub (Mar 27, 2021):

Thank you for your reply. I tried it, it show same as your previous reply.

<!-- gh-comment-id:808704704 --> @Tus1688 commented on GitHub (Mar 27, 2021): Thank you for your reply. I tried it, it show same as your previous reply.
Author
Owner

@rusty-snake commented on GitHub (Mar 27, 2021):

Then try to create /etc/firejail/Books.profile:

# Firejail profile for gnome-books
# This file is overwritten after every install/update


# Temporary fix for https://github.com/netblue30/firejail/issues/2624
# Redirect
include gnome-books.profile

and add Books to firecfg.config (find it with shopt -s globstar && ls /usr/lib*/**/firecfg.config).

After running sudo firecfg again, it hopefully works (and we can add it).

<!-- gh-comment-id:808706494 --> @rusty-snake commented on GitHub (Mar 27, 2021): Then try to create `/etc/firejail/Books.profile`: ``` # Firejail profile for gnome-books # This file is overwritten after every install/update # Temporary fix for https://github.com/netblue30/firejail/issues/2624 # Redirect include gnome-books.profile ``` and add `Books` to `firecfg.config` (find it with `shopt -s globstar && ls /usr/lib*/**/firecfg.config`). After running `sudo firecfg` again, it hopefully works (and we can add it).
Author
Owner

@Tus1688 commented on GitHub (Mar 28, 2021):

it is working, thank you very much!

<!-- gh-comment-id:808857207 --> @Tus1688 commented on GitHub (Mar 28, 2021): it is working, thank you very much!
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#2550
No description provided.