mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5863] libreoffice: cannot open URL in flatpak program (AppImage) #3112
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#3112
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 @MikeNavy on GitHub (Jun 20, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5863
Description
I use LibreOffice AppImage; it contains its own help; when user wants to display the help, LibreOffice writes the help as html files in a "/tmp/" subdirectory, then it launches the application which is associated to html files.
In my case, the application associated to html files is Ungoogled-Chromium browser flatpak.
I have associated the html files to the command:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/chromium --file-forwarding com.github.Eloston.UngoogledChromium @@u %U @@using the "open with another application" option in Caja, entering the command line in "Use a personalized command" and ticking the "Remember this application..." option. Since I don't use any non flatpak browser, there is no default browser on my system (file association only).When I launch LibreOffice AppImage without firejail, using
~/opt/LibreOffice.AppImagecommand, the help works, it is opened in Ungoogled-Chromium Browser.When I launch LibreOffice AppImage with firejail, with the command:
firejail --appimage ~/opt/LibreOffice.AppImage, LibreOffice is launched and works normally, except the help that does not work (it is not displayed).Steps to Reproduce
Install LibreOffice AppImage, a version including its help, in a directory of your choice in your home (I chose "/opt"). Launch LibreOffice with
firejail --appimage.LC=ALL firejail --appimage ~/opt/LibreOffice.AppImage("~/opt/" is the directory I used for AppImages, replace it with yours)--> Help is not displayed.
Using "--profile=libreoffice" option:
LC=ALL firejail --appimage --profile=libreoffice ~/opt/LibreOffice.AppImage("~/opt/" is the directory I used for AppImages, replace it with yours)--> Help is not displayed.
Expected behavior
LibreOffice help should be displayed
Actual behavior
No help displayed. In the terminal:
Same result with
--profile=libreofficeoption.Behavior without a profile
Run in a terminal
LC=ALL firejail --noprofile --appimage ~/opt/LibreOffice.AppImage("~/opt/" is the directory I used for AppImages, replace it with yours)LibreOffice is launched, help does not work.
Terminal output:
Additional context
Any other detail that may help to understand/debug the problem
Environment
Checklist
/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/programOutput of
LC_ALL=C firejail --debug /path/to/programhttps://gist.github.com/MikeNavy/5c78a9e3852eb04ee5b802da57051204
@kmk3 commented on GitHub (Jun 20, 2023):
Running flatpak programs through firejail is unsupported, as generally firejail
removes privileges which flatpak requires.
In order to open URLs in an external browser, it is possible to make the
sandboxed program write the URLs to a socket and have another program outside
of the sandbox which listens to it and opens URLs.
See the following discussion and the related discussions for details:
@rusty-snake commented on GitHub (Jun 20, 2023):
Furthermore you have to share your /tmp:
And if you would use run your browser in firejail too you have to share it there as well.
@rusty-snake commented on GitHub (Jun 20, 2023):
The best solution is likely to browser a online help or to export (save) it once to e.g. ~/Documents and browse it from there.
@MikeNavy commented on GitHub (Jun 20, 2023):
Or I can use LibreOffice AppImage without Firejail... ;-):
Regards,
MN
PS: I use firejailed LibreOffice AppImage to open files downloaded from internet; I use unsandboxed LibreOffice AppImage to open and edit my own files (and have access to the included help).