mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #7081] fbwrap sleeps instead of waiting for child to exit, does not preserve return code #3478
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#3478
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 @spikethehobbitmage on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7081
Description
fbwrap sleeps instead of waiting for the child to exit. This breaks programs that expect to wait for the sandboxed child. All xfce4 applications appear to be affected as is geeqie.
Steps to Reproduce
Launch any xfce4 application using firejail. There will be an extra two second delay before the program starts.
Expected behavior
Both commands should take close to the same amount of time to complete.
Actual behavior
The version using firejail's fbwrap takes 4 seconds longer than the one using native bwrap.
Behavior without a profile
With or without a profile makes no difference for any affected application that has one.
Additional context
Some programs wait for the wrapped program to exit and may check the exit code. xfce4 applications do this on startup causing a delay before their window opens.
From the
bwrapman page:The problem is in the following code in
src/fbwrap/main.c:It should be changed to:
Environment
Linux 6.18.12+deb14-amd64 x86_64
Debian forky/sid
xfce4-terminal 1.1.5 (Xfce 4.20) (For demonstration. All Xfce 4.20 programs are affected.)
firejail version 0.9.78
Checklist
firejail /usr/bin/vlcinstead offirejail vlc; seehttps://github.com/netblue30/firejail/issues/2877)/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
time firejail --noprofile /usr/bin/xfce4-terminal --disable-server -e /bin/trueOutput of
time firejail --noprofile --allow-bwrap /usr/bin/xfce4-terminal --disable-server -e /bin/true@netblue30 commented on GitHub (Mar 17, 2026):
Bug! I'll bring in a fix, thanks.