[GH-ISSUE #3031] Telegram desktop does not open links in browser (seccomp problem?) #1901

Closed
opened 2026-05-05 08:34:10 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @clara2g on GitHub (Nov 8, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3031

Hello :) fresh install of Fedora 31 with Firejail and noticed that clicking links in Telegram with Firejail does not open them in default browser (tried with Firefox, Falcon an Brave). I have found that commenting the seccomp line in telegram.profile fixes the issue.

Originally created by @clara2g on GitHub (Nov 8, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/3031 Hello :) fresh install of Fedora 31 with Firejail and noticed that clicking links in Telegram with Firejail does not open them in default browser (tried with Firefox, Falcon an Brave). I have found that commenting the seccomp line in telegram.profile fixes the issue.
gitea-mirror 2026-05-05 08:34:10 -06:00
Author
Owner

@rusty-snake commented on GitHub (Nov 8, 2019):

It should be enough to allow chroot, in firejail master you can simply add !chroot after seccomp (with one space).

<!-- gh-comment-id:551717837 --> @rusty-snake commented on GitHub (Nov 8, 2019): It should be enough to allow `chroot`, in firejail master you can simply add `!chroot` after `seccomp` (with one space).
Author
Owner

@rusty-snake commented on GitHub (Dec 14, 2019):

@clara2g
I'm closing here due to inactivity, please fell free to reopen if you have more questions.

<!-- gh-comment-id:565739009 --> @rusty-snake commented on GitHub (Dec 14, 2019): @clara2g I'm closing here due to inactivity, please fell free to reopen if you have more questions.
Author
Owner

@Micha-Btz commented on GitHub (Jan 18, 2020):

I'm facing the same problem. Can you please explain in which file I musst allos chroot?

<!-- gh-comment-id:575893417 --> @Micha-Btz commented on GitHub (Jan 18, 2020): I'm facing the same problem. Can you please explain in which file I musst allos chroot?
Author
Owner

@rusty-snake commented on GitHub (Jan 18, 2020):

echo 'seccomp !chroot' >> ~/.config/firejail/telegram.local or
sudo sed -i 's/seccomp/seccomp !chroot/' /etc/firejail/telegram.profile

<!-- gh-comment-id:575895445 --> @rusty-snake commented on GitHub (Jan 18, 2020): `echo 'seccomp !chroot' >> ~/.config/firejail/telegram.local` or `sudo sed -i 's/seccomp/seccomp !chroot/' /etc/firejail/telegram.profile`
Author
Owner

@Micha-Btz commented on GitHub (Jan 18, 2020):

This I have tested, don't work.
Warning: an existing sandbox was detected. /usr/bin/firefox will run without any additional sandboxing features
Error: Access was denied while trying to open files in your profile directory.
So I whitelisted ~/.mozilla and it works.

One strange thing is,if I change this under the defaul profile in /etc/firejail/telegram.profile it works.
If I create a telegram.local firle with
seccomp !chroot
noblacklist ${HOME}/.mozilla
something went wrong and telegram is not able to load it's configuration.

<!-- gh-comment-id:575897381 --> @Micha-Btz commented on GitHub (Jan 18, 2020): This I have tested, don't work. Warning: an existing sandbox was detected. /usr/bin/firefox will run without any additional sandboxing features Error: Access was denied while trying to open files in your profile directory. So I whitelisted ~/.mozilla and it works. One strange thing is,if I change this under the defaul profile in /etc/firejail/telegram.profile it works. If I create a telegram.local firle with seccomp !chroot noblacklist ${HOME}/.mozilla something went wrong and telegram is not able to load it's configuration.
Author
Owner

@reagentoo commented on GitHub (Mar 15, 2024):

Is there a new solution how to force tg open links?
Tg firejail profile is still slack-baked.
Configuration:

firejail-0.9.72
telegram-desktop-4.15.2
<!-- gh-comment-id:1999930826 --> @reagentoo commented on GitHub (Mar 15, 2024): Is there a new solution how to force tg open links? Tg firejail profile is still slack-baked. Configuration: ``` firejail-0.9.72 telegram-desktop-4.15.2 ```
Author
Owner

@reagentoo commented on GitHub (Mar 15, 2024):

@rusty-snake reopen

<!-- gh-comment-id:1999934473 --> @reagentoo commented on GitHub (Mar 15, 2024): @rusty-snake reopen
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#1901
No description provided.