mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6275] telegram: cannot open links in browser #3231
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#3231
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 @reagentoo on GitHub (Mar 15, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6275
Hello :) fresh install of Gentoo with Firejail and noticed that clicking links in Telegram with Firejail does not open them in default browser.
Linux:
Configuration:
Console output on clicking links:
This is reopen https://github.com/netblue30/firejail/issues/3031
@kmk3 commented on GitHub (Mar 15, 2024):
Hello, what happens with the following in ~/.config/firejail/telegram.local:
If there are more similar errors try adding the commands to
private-bin.@reagentoo commented on GitHub (Mar 15, 2024):
@kmk3 commented on GitHub (Mar 15, 2024):
What happens with just
ignore private-bin?Note that you can probably debug this with xdg-open directly:
@reagentoo commented on GitHub (Mar 15, 2024):
I've added the next lines:
And got the next result:
@reagentoo commented on GitHub (Mar 15, 2024):
Fixed by adding dbus related lines and all xdg-open dependencies:
(not tested with chromium)
Related issues:
https://github.com/netblue30/firejail/issues/3290
@glu8716 commented on GitHub (Apr 2, 2024):
I just came across this thread and I have a similar problem. By using the default profile what I get is
xdg-open: no method available for opening 'https://link'Adding
ignore private-binopens a new Firefox instance and not the one that is already running:@reagentoo commented on GitHub (Apr 2, 2024):
Try this (
~/.config/firejail/telegram.local):@glu8716 commented on GitHub (Apr 2, 2024):
@reagentoo I've already tried the options in your last post, but unfortunately it doesn't work
@ghost commented on GitHub (Apr 2, 2024):
@glu8716
This is fixed in git and will be in the next release. /etc/login.defs is now part of the default group in
private-etcrefactoring. For 0.9.72 you can addlogin.defsto private-etc in a telegram.local override. Unlikely this fixes your issue (unless your user != 1000), so just a FYI.@reagentoo commented on GitHub (Apr 2, 2024):
@glitsj16 Hi. Can you please give some comment for the
telegram.localin https://github.com/netblue30/firejail/issues/6275#issuecomment-2031661702 (in the context of the refactoring)? Are there any extra or missing rules to fix xdg-open? This config works for me with 0.9.72.@ghost commented on GitHub (Apr 2, 2024):
@reagentoo Hi. Your fix from https://github.com/netblue30/firejail/issues/6275#issuecomment-2031661702 looks fine. The mentioned private-etc refactoring doesn't affect it. That being said, there are (socket) alternatives being considered for using D-Bus to support URL handling. See #5364 and #5582 for context.
HTH
@glu8716 commented on GitHub (Apr 2, 2024):
Can confirm that the error is fixed with the git version. However I'm still getting
Warning: an existing sandbox was detected. /usr/bin/firefox will run without any additional sandboxing featuresand the link is opened in a new instance of Firefox instead of the already running one.@ghost commented on GitHub (Apr 3, 2024):
@glu8716
Have you tried exporting
MOZ_DBUS_REMOTE=1in your~/.bashrc(or similar if you happen to use a different shell)? It's a known environment variable that avoids the infamousFirefox is already runningdialog and should force opening the link in a running Firefox instance. You've got to close all running FF instances, export the env var and start using FF again afterwards.@glu8716 commented on GitHub (Apr 3, 2024):
@glitsj16 It doesn't work, unfortunately