[GH-ISSUE #4488] telegram-desktop cannot start #2684

Closed
opened 2026-05-05 09:20:39 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @nidamanx on GitHub (Aug 27, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4488

Solution found
All is fine if I disable include whitelist-usr-share-common.inc
Is there a way to disable this line using a .local profile?

With original .profile, the result is:

Terminal output

$ telegram-desktop 
Reading profile /etc/firejail/telegram-desktop.profile
Reading profile /etc/firejail/telegram.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-shell.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 30921, child pid 30924
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: skipping crypto-policies for private /etc
Warning fcopy: skipping /etc/pulse/client.conf.d/01-enable-autospawn.conf, cannot find inode
Private /etc installed in 26.96 ms
Private /usr/etc installed in 0.00 ms
Child process initialized in 127.71 ms
Packed resources not found

Parent is shutting down, bye...

No profile and disabling firejail
All is fine

Reproduce
Steps to reproduce the behavior:

  1. Run in bash firejail telegram-desktop

Environment

  • Linux distribution and version: Debian 11
  • Firejail version: 0.9.66

Additional context
None

Checklist

  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • I have performed a short search for similar issues (to avoid opening a duplicate).
  • If it is a AppImage, --profile=PROFILENAME is used to set the right profile.
  • Used LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM to get english error-messages.
  • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • This is not a question. Questions should be asked in https://github.com/netblue30/firejail/discussions.

Thanks!

Originally created by @nidamanx on GitHub (Aug 27, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4488 **Solution found** All is fine if I disable `include whitelist-usr-share-common.inc` Is there a way to disable this line using a .local profile? **With original .profile, the result is:** **Terminal output** ``` $ telegram-desktop Reading profile /etc/firejail/telegram-desktop.profile Reading profile /etc/firejail/telegram.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-shell.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Warning: networking feature is disabled in Firejail configuration file Parent pid 30921, child pid 30924 Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: skipping crypto-policies for private /etc Warning fcopy: skipping /etc/pulse/client.conf.d/01-enable-autospawn.conf, cannot find inode Private /etc installed in 26.96 ms Private /usr/etc installed in 0.00 ms Child process initialized in 127.71 ms Packed resources not found Parent is shutting down, bye... ``` **No profile and disabling firejail** All is fine **Reproduce** Steps to reproduce the behavior: 1. Run in bash `firejail telegram-desktop` **Environment** - Linux distribution and version: Debian 11 - Firejail version: 0.9.66 **Additional context** None **Checklist** - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] If it is a AppImage, `--profile=PROFILENAME` is used to set the right profile. - [x] Used `LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM` to get english error-messages. - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] This is not a question. Questions should be asked in https://github.com/netblue30/firejail/discussions. Thanks!
Author
Owner

@rusty-snake commented on GitHub (Aug 27, 2021):

Is there a way to disable this line using a .local profile?

ignore include …

All is fine if I disable include whitelist-usr-share-common.inc

Do you have /usr/share/telegram-desktop (or /TelegramDesktop or telegram or …) in your system?

<!-- gh-comment-id:907197780 --> @rusty-snake commented on GitHub (Aug 27, 2021): > Is there a way to disable this line using a .local profile? `ignore include …` > All is fine if I disable include whitelist-usr-share-common.inc Do you have `/usr/share/telegram-desktop` (or `/TelegramDesktop` or `telegram` or …) in your system?
Author
Owner

@rusty-snake commented on GitHub (Aug 27, 2021):

Does #4475 fix it for U too?

<!-- gh-comment-id:907208627 --> @rusty-snake commented on GitHub (Aug 27, 2021): Does #4475 fix it for U too?
Author
Owner

@nidamanx commented on GitHub (Aug 27, 2021):

Is there a way to disable this line using a .local profile?

ignore include …

Perfect!

All is fine if I disable include whitelist-usr-share-common.inc

Do you have /usr/share/telegram-desktop (or /TelegramDesktop or telegram or …) in your system?

Yes, a directory. /usr/share/TelegramDesktop/

<!-- gh-comment-id:907244851 --> @nidamanx commented on GitHub (Aug 27, 2021): > > Is there a way to disable this line using a .local profile? > > `ignore include …` Perfect! > > > All is fine if I disable include whitelist-usr-share-common.inc > > Do you have `/usr/share/telegram-desktop` (or `/TelegramDesktop` or `telegram` or …) in your system? Yes, a directory. `/usr/share/TelegramDesktop/`
Author
Owner

@rusty-snake commented on GitHub (Aug 27, 2021):

@nidamanx then add whitelist /usr/share/TelegramDesktop to your telegram.profile like in #4475.

<!-- gh-comment-id:907249132 --> @rusty-snake commented on GitHub (Aug 27, 2021): @nidamanx then add `whitelist /usr/share/TelegramDesktop` to your telegram.profile like in #4475.
Author
Owner

@nidamanx commented on GitHub (Aug 27, 2021):

@nidamanx then add whitelist /usr/share/TelegramDesktop to your telegram.profile like in #4475.

@rusty-snake I was testing just now ;-)
All seems fine. Maybe could me nice to inclule in the profile
Just whitelist /usr/share/TelegramDesktop is enough
Let me check also Xfce for tray icon

<!-- gh-comment-id:907252679 --> @nidamanx commented on GitHub (Aug 27, 2021): > @nidamanx then add `whitelist /usr/share/TelegramDesktop` to your telegram.profile like in #4475. @rusty-snake I was testing just now ;-) All seems fine. Maybe could me nice to inclule in the profile Just `whitelist /usr/share/TelegramDesktop` is enough Let me check also Xfce for tray icon
Author
Owner

@nidamanx commented on GitHub (Aug 27, 2021):

@rusty-snake
We can also enable the commented line private-bin
This is my actual setup

$ cat ~/.config/firejail/telegram.local 
whitelist /usr/share/TelegramDesktop
private-bin telegram,Telegram,telegram-desktop
<!-- gh-comment-id:907259459 --> @nidamanx commented on GitHub (Aug 27, 2021): @rusty-snake We can also enable the commented line private-bin This is my actual setup ``` $ cat ~/.config/firejail/telegram.local whitelist /usr/share/TelegramDesktop private-bin telegram,Telegram,telegram-desktop ```
Author
Owner

@nidamanx commented on GitHub (Aug 27, 2021):

@rusty-snake
This works perfect with GNOME and Xfce

$ cat ~/.config/firejail/telegram.local 
whitelist /usr/share/TelegramDesktop
private-bin telegram,Telegram,telegram-desktop
ignore dbus-user.talk org.kde.StatusNotifierWatcher

Thanks for all your great work! :)

<!-- gh-comment-id:907299759 --> @nidamanx commented on GitHub (Aug 27, 2021): @rusty-snake This works perfect with GNOME and Xfce ``` $ cat ~/.config/firejail/telegram.local whitelist /usr/share/TelegramDesktop private-bin telegram,Telegram,telegram-desktop ignore dbus-user.talk org.kde.StatusNotifierWatcher ``` Thanks for all your great work! :)
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#2684
No description provided.