[GH-ISSUE #1699] Can't launch qBittorrent and okular with firejail aymore #1147

Closed
opened 2026-05-05 07:32:17 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @Alin1agh on GitHub (Dec 29, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1699

After last update, can't launch qbittorrent and okular with firejail. (Arch/kde/x64)

[user@machine]: ~>$ firejail qbittorrent
Reading profile /etc/firejail/qbittorrent.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 1892, child pid 1893
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 66.07 ms
Icon theme "gnome" not found.

[user@machine]: ~>$ firejail okular
Reading profile /etc/firejail/okular.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 1980, child pid 1981
Warning: skipping alternatives for private /etc
Warning: skipping cups for private /etc
Private /etc installed in 2.44 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 58.15 ms
Icon theme "gnome" not found.
Icon theme "gnome" not found.
mprotect failed in ExecutableAllocator::makeExecutable: Permission denied
*** stack smashing detected ***: terminated

Parent is shutting down, bye...

Originally created by @Alin1agh on GitHub (Dec 29, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1699 After last update, can't launch qbittorrent and okular with firejail. (Arch/kde/x64) [user@machine]: ~>$ firejail qbittorrent Reading profile /etc/firejail/qbittorrent.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 1892, child pid 1893 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Child process initialized in 66.07 ms Icon theme "gnome" not found. [user@machine]: ~>$ firejail okular Reading profile /etc/firejail/okular.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 1980, child pid 1981 Warning: skipping alternatives for private /etc Warning: skipping cups for private /etc Private /etc installed in 2.44 ms Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Blacklist violations are logged to syslog Child process initialized in 58.15 ms Icon theme "gnome" not found. Icon theme "gnome" not found. mprotect failed in ExecutableAllocator::makeExecutable: Permission denied *** stack smashing detected ***: <unknown> terminated Parent is shutting down, bye...
Author
Owner

@smitsohu commented on GitHub (Dec 30, 2017):

Could you create ~/.config/firejail/qbittorrent.profile and paste this into that file?

For Okular run sudo echo "env QML_DISABLE_DISK_CACHE=1" >> /etc/firejail/disable-common.inc and try it again.

<!-- gh-comment-id:354539807 --> @smitsohu commented on GitHub (Dec 30, 2017): Could you create ~/.config/firejail/qbittorrent.profile and paste [this](https://raw.githubusercontent.com/netblue30/firejail/master/etc/qbittorrent.profile) into that file? For Okular run `sudo echo "env QML_DISABLE_DISK_CACHE=1" >> /etc/firejail/disable-common.inc` and try it again.
Author
Owner

@NathanC commented on GitHub (Dec 30, 2017):

@smitsohu I just tried appending that above command to disable-common.inc for Okular (I was having the same issue as @Alin1agh ), and now I get this:

Reading profile /etc/firejail/okular.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: noroot option is not available
Parent pid X, child pid X+1
The new log directory is /proc/X+1/root/var/log
Warning: skipping alternatives for private /etc
Warning: skipping cups for private /etc
Private /etc installed in 5.92 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 41.13 ms
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-'
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.

Parent is shutting down, bye...
<!-- gh-comment-id:354560338 --> @NathanC commented on GitHub (Dec 30, 2017): @smitsohu I just tried appending that above command to `disable-common.inc` for Okular (I was having the same issue as @Alin1agh ), and now I get this: ``` Reading profile /etc/firejail/okular.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-var-common.inc Warning: noroot option is not available Parent pid X, child pid X+1 The new log directory is /proc/X+1/root/var/log Warning: skipping alternatives for private /etc Warning: skipping cups for private /etc Private /etc installed in 5.92 ms Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Blacklist violations are logged to syslog Child process initialized in 41.13 ms QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-' No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0 Could not connect to any X display. Parent is shutting down, bye... ```
Author
Owner

@smitsohu commented on GitHub (Jan 1, 2018):

@NathanC Thanks for the feedback. Could you comment env QML_DISABLE_DISK_CACHE=1 in disable-common.inc and run in bash:

diff <(firejail --quiet printenv) <(firejail --quiet --env=QML_DISABLE_DISK_CACHE=1 printenv)
(edited)

The only output should be > QML_DISABLE_DISK_CACHE=1.

<!-- gh-comment-id:354658465 --> @smitsohu commented on GitHub (Jan 1, 2018): @NathanC Thanks for the feedback. Could you comment `env QML_DISABLE_DISK_CACHE=1` in disable-common.inc and run in bash: `diff <(firejail --quiet printenv) <(firejail --quiet --env=QML_DISABLE_DISK_CACHE=1 printenv)` (edited) The only output should be `> QML_DISABLE_DISK_CACHE=1`.
Author
Owner

@Alin1agh commented on GitHub (Jan 3, 2018):

qBittorrent works fine, i've followed your instructions.

For okular i did this:

sudo echo "env QML_DISABLE_DISK_CACHE=1" >> /etc/firejail/disable-common.inc and try it again.

I commented env QML_DISABLE_DISK_CACHE=1 in disable-common.inc

[user@machine]: ~>$ diff <(firejail --quiet printenv) <(firejail --quiet --env=QML_DISABLE_DISK_CACHE=1 printenv)
4a5
The output was: > QML_DISABLE_DISK_CACHE=1

[user@machine]: ~>$ firejail okular
Reading profile /etc/firejail/okular.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 6118, child pid 6119
Warning: skipping alternatives for private /etc
Warning: skipping cups for private /etc
Private /etc installed in 2.52 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 40.44 ms
Icon theme "gnome" not found.
Icon theme "gnome" not found.
mprotect failed in ExecutableAllocator::makeExecutable: Permission denied
*** stack smashing detected ***: terminated

Parent is shutting down, bye...

<!-- gh-comment-id:355060156 --> @Alin1agh commented on GitHub (Jan 3, 2018): qBittorrent works fine, i've followed your instructions. For okular i did this: sudo echo "env QML_DISABLE_DISK_CACHE=1" >> /etc/firejail/disable-common.inc and try it again. I commented env QML_DISABLE_DISK_CACHE=1 in disable-common.inc [user@machine]: ~>$ diff <(firejail --quiet printenv) <(firejail --quiet --env=QML_DISABLE_DISK_CACHE=1 printenv) 4a5 The output was: > QML_DISABLE_DISK_CACHE=1 [user@machine]: ~>$ firejail okular Reading profile /etc/firejail/okular.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 6118, child pid 6119 Warning: skipping alternatives for private /etc Warning: skipping cups for private /etc Private /etc installed in 2.52 ms Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Blacklist violations are logged to syslog Child process initialized in 40.44 ms Icon theme "gnome" not found. Icon theme "gnome" not found. mprotect failed in ExecutableAllocator::makeExecutable: Permission denied *** stack smashing detected ***: <unknown> terminated Parent is shutting down, bye...
Author
Owner

@smitsohu commented on GitHub (Jan 4, 2018):

@Alin1agh Ok, if Okular doesn't launch with QML_DISABLE_DISK_CACHE=1 uncommented in /etc/firejail/disable-common.inc, can you try if firejail --ignore=noexec okular works?

Failing all of this, can you please navigate to /etc/firejail/okular.profile? In okular.profile comment everything and then uncomment line after line, checking after each step if Okular starts or fails. Usually it is a single line which causes the problem, and you will find it quickly this way.

<!-- gh-comment-id:355330031 --> @smitsohu commented on GitHub (Jan 4, 2018): @Alin1agh Ok, if Okular doesn't launch with `QML_DISABLE_DISK_CACHE=1` _uncommented_ in /etc/firejail/disable-common.inc, can you try if `firejail --ignore=noexec okular` works? Failing all of this, can you please navigate to /etc/firejail/okular.profile? In okular.profile comment everything and then uncomment line after line, checking after each step if Okular starts or fails. Usually it is a single line which causes the problem, and you will find it quickly this way.
Author
Owner

@Alin1agh commented on GitHub (Jan 5, 2018):

@smitsohu , it works with QML_DISABLE_DISK_CACHE=1 uncommented. I was trying to follow instructions you already gave to @NathanC.
Thank you very much.

<!-- gh-comment-id:355501449 --> @Alin1agh commented on GitHub (Jan 5, 2018): @smitsohu , it works with QML_DISABLE_DISK_CACHE=1 uncommented. I was trying to follow instructions you already gave to @NathanC. 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#1147
No description provided.