mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4785] Firefox on KDE & Wayland fails to show Qt file-picker using portals, old fixes do not work on new Firejail versions #2777
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#2777
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 @alexdelorenzo on GitHub (Dec 19, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4785
Description
Using Firefox on KDE & Wayland with Firejail, setting
GTK_USE_PORTAL=1and the relevantabout:configentries fails to show the Qt file-picker, or any file-picker at all, when opening the file dialog.Previously, @rusty-snake addressed this issue on bug #3407 in May 2020, saying this:
And:
As of Firejail v0.9.66,
ignore nodbusandignore norootdon't seem to fix the issue.However, I was able to fix this issue by creating a
firefox.localfile in~/.config/firejailwith the following content:The problem is that I'm not sure how secure this is, or whether or not this is an equivalent fix to the fix that was given in May 2020.
Steps to Reproduce
widget.use-xdg-desktop-portaltotruein Firefox'sabout:configGTK_USE_PORTAL=1firejail firefoxFile -> Open...or hit Ctrl+O to open the file-pickerExpected behavior
Firefox should show the Qt file-picker.
Actual behavior
No file dialog opens. This error is printed in the console:
Behavior without a profile
Running Firefox without a profile works and shows the correct file-picker.
Environment
firejail --version): v0.9.66Checklist
/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
LC_ALL=C firejail /path/to/program@rusty-snake commented on GitHub (Dec 19, 2021):
and
are the same.
Because we now have "Fine-grained D-Bus sandboxing", you can do it much more selective:
firefox.local:@alexdelorenzo commented on GitHub (Dec 24, 2021):
Awesome, thanks for the tip, @rusty-snake. Happy holidays!