[GH-ISSUE #1463] wrong/corrupted tray icon running telegram in ubuntu with lxpanel / openbox #984

Closed
opened 2026-05-05 07:15:35 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @badpenguin on GitHub (Aug 11, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1463

when running telegram, does not matter if through telegram-desktop ubunt's package or the latest binary from the net i always get a corrupted icon (white with red signal) into the lxpanel tray area
i've tried both blacklist and whitelist config
i've also tried to be more permissive possibile
but no luck

Any other option i can try both on command line or in the .profile file that i can try to solve the problem?

Originally created by @badpenguin on GitHub (Aug 11, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1463 when running telegram, does not matter if through telegram-desktop ubunt's package or the latest binary from the net i always get a corrupted icon (white with red signal) into the lxpanel tray area i've tried both blacklist and whitelist config i've also tried to be more permissive possibile but no luck Any other option i can try both on command line or in the .profile file that i can try to solve the problem?
gitea-mirror 2026-05-05 07:15:35 -06:00
Author
Owner

@SkewedZeppelin commented on GitHub (Aug 11, 2017):

Can you try running without private-tmp?

<!-- gh-comment-id:321902083 --> @SkewedZeppelin commented on GitHub (Aug 11, 2017): Can you try running without private-tmp?
Author
Owner

@badpenguin commented on GitHub (Aug 11, 2017):

uhm... is it enabled by default? i checked all the included files in the Telegram's profile and its not mentioned

<!-- gh-comment-id:321924407 --> @badpenguin commented on GitHub (Aug 11, 2017): uhm... is it enabled by default? i checked all the included files in the Telegram's profile and its not mentioned
Author
Owner

@SkewedZeppelin commented on GitHub (Aug 11, 2017):

Oh, that was only added recently. Must be something else causing it.

<!-- gh-comment-id:321925106 --> @SkewedZeppelin commented on GitHub (Aug 11, 2017): Oh, that was only added recently. Must be something else causing it.
Author
Owner

@Fred-Barclay commented on GitHub (Aug 11, 2017):

G'day @badpenguin
What version of firejail are you running?

Do you get the correct tray icon if you run firejail --noprofile telegram-desktop?

<!-- gh-comment-id:321942059 --> @Fred-Barclay commented on GitHub (Aug 11, 2017): G'day @badpenguin What version of firejail are you running? Do you get the correct tray icon if you run `firejail --noprofile telegram-desktop`?
Author
Owner

@badpenguin commented on GitHub (Aug 12, 2017):

Ubuntu 17.04

firejail version 0.9.44.8

Compile time support:
	- AppArmor support is enabled
	- AppImage support is enabled
	- bind support is enabled
	- chroot support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- networking support is enabled
	- overlayfs support is enabled
	- private-home support is enabled
	- seccomp-bpf support is enabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled

Tray icon is broken also when using --noprofile.

Maybe i should tray QuiteRSS too and see if it gets a broken icon too, at leat to restrict the problem to telegram only or to iteration with the lxpanel tray area.

<!-- gh-comment-id:321966566 --> @badpenguin commented on GitHub (Aug 12, 2017): Ubuntu 17.04 firejail version 0.9.44.8 ``` Compile time support: - AppArmor support is enabled - AppImage support is enabled - bind support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ``` Tray icon is broken also when using ```--noprofile```. Maybe i should tray QuiteRSS too and see if it gets a broken icon too, at leat to restrict the problem to telegram only or to iteration with the lxpanel tray area.
Author
Owner

@badpenguin commented on GitHub (Aug 12, 2017):

Same problem with quiterss. So its must be something between firejail and lxde?

Those are my dpkgs installed about lxde:

ii  lxappearance                                                     0.6.3-1                                          amd64        LXDE GTK+ theme switcher
ii  lxappearance-obconf                                              0.2.3-1build1                                    amd64        LXDE GTK+ theme switcher (plugin)
ii  lxde                                                             9                                                all          Metapackage for LXDE
ii  lxde-common                                                      0.99.2-3                                         all          LXDE common configuration files
ii  lxde-core                                                        9                                                all          Metapackage for the LXDE core
ii  lxde-icon-theme                                                  0.5.1-2                                          all          LXDE standard icon theme
ii  lxhotkey-core                                                    0.1.0-1                                          amd64        Lightweight global keyboard shortcuts configurator
ii  lxhotkey-data                                                    0.1.0-1                                          all          LXHotkey keyboard shortcuts configurator (data files)
ii  lxhotkey-gtk                                                     0.1.0-1                                          amd64        LXHotkey keyboard shortcuts configurator (GTK+ GUI plugin)
ii  lxhotkey-plugin-openbox                                          0.1.0-1                                          amd64        LXHotkey keyboard shortcuts configurator (Openbox support plugin)
ii  lxinput                                                          0.3.5-1                                          amd64        LXDE keyboard and mouse configuration
ii  lxlock                                                           0.5.3-1ubuntu1                                   all          simple locking utility for LXDE
ii  lxmenu-data                                                      0.1.5-2                                          all          LXDE freedesktop.org menu specification
ii  lxmusic                                                          0.4.7-1                                          amd64        LXDE music player
ii  lxpanel                                                          0.9.3-1ubuntu1                                   amd64        LXDE panel
ii  lxpanel-data                                                     0.9.3-1ubuntu1                                   all          LXDE panel (data files)
ii  lxpanel-indicator-applet-plugin                                  0.9.3-1ubuntu1                                   amd64        lxpanel indicator applet
ii  lxpolkit                                                         0.5.3-1ubuntu1                                   amd64        LXDE PolicyKit authentication agent
ii  lxrandr                                                          0.3.1-1                                          amd64        LXDE monitor configuration tool
ii  lxsession                                                        0.5.3-1ubuntu1                                   amd64        LXDE default session manager
ii  lxsession-data                                                   0.5.3-1ubuntu1                                   all          Common files for lxsession
ii  lxsession-default-apps                                           0.5.3-1ubuntu1                                   amd64        utility to configure lxsession and its default applications
ii  lxsession-edit                                                   0.5.3-1ubuntu1                                   amd64        configure what application start up automaticlly in LXDE
ii  lxsession-logout                                                 0.5.3-1ubuntu1                                   amd64        utility to logout from a LXDE or an Openbox session
ii  lxshortcut                                                       1.2.5-1ubuntu1                                   amd64        LXDE application shortcut editor
ii  lxtask                                                           0.1.8-1                                          amd64        LXDE task manager
ii  lxterminal                                                       0.3.0-1ubuntu0.2                                 amd64        LXDE terminal emulator
<!-- gh-comment-id:321966672 --> @badpenguin commented on GitHub (Aug 12, 2017): Same problem with ```quiterss```. So its must be something between firejail and lxde? Those are my dpkgs installed about lxde: ``` ii lxappearance 0.6.3-1 amd64 LXDE GTK+ theme switcher ii lxappearance-obconf 0.2.3-1build1 amd64 LXDE GTK+ theme switcher (plugin) ii lxde 9 all Metapackage for LXDE ii lxde-common 0.99.2-3 all LXDE common configuration files ii lxde-core 9 all Metapackage for the LXDE core ii lxde-icon-theme 0.5.1-2 all LXDE standard icon theme ii lxhotkey-core 0.1.0-1 amd64 Lightweight global keyboard shortcuts configurator ii lxhotkey-data 0.1.0-1 all LXHotkey keyboard shortcuts configurator (data files) ii lxhotkey-gtk 0.1.0-1 amd64 LXHotkey keyboard shortcuts configurator (GTK+ GUI plugin) ii lxhotkey-plugin-openbox 0.1.0-1 amd64 LXHotkey keyboard shortcuts configurator (Openbox support plugin) ii lxinput 0.3.5-1 amd64 LXDE keyboard and mouse configuration ii lxlock 0.5.3-1ubuntu1 all simple locking utility for LXDE ii lxmenu-data 0.1.5-2 all LXDE freedesktop.org menu specification ii lxmusic 0.4.7-1 amd64 LXDE music player ii lxpanel 0.9.3-1ubuntu1 amd64 LXDE panel ii lxpanel-data 0.9.3-1ubuntu1 all LXDE panel (data files) ii lxpanel-indicator-applet-plugin 0.9.3-1ubuntu1 amd64 lxpanel indicator applet ii lxpolkit 0.5.3-1ubuntu1 amd64 LXDE PolicyKit authentication agent ii lxrandr 0.3.1-1 amd64 LXDE monitor configuration tool ii lxsession 0.5.3-1ubuntu1 amd64 LXDE default session manager ii lxsession-data 0.5.3-1ubuntu1 all Common files for lxsession ii lxsession-default-apps 0.5.3-1ubuntu1 amd64 utility to configure lxsession and its default applications ii lxsession-edit 0.5.3-1ubuntu1 amd64 configure what application start up automaticlly in LXDE ii lxsession-logout 0.5.3-1ubuntu1 amd64 utility to logout from a LXDE or an Openbox session ii lxshortcut 1.2.5-1ubuntu1 amd64 LXDE application shortcut editor ii lxtask 0.1.8-1 amd64 LXDE task manager ii lxterminal 0.3.0-1ubuntu0.2 amd64 LXDE terminal emulator ```
Author
Owner

@ltworf commented on GitHub (Oct 20, 2017):

I use firejail+telegram on KDE and the icon is blue with the arrow for me, plus the red marker when there are messages

<!-- gh-comment-id:338342625 --> @ltworf commented on GitHub (Oct 20, 2017): I use firejail+telegram on KDE and the icon is blue with the arrow for me, plus the red marker when there are messages
Author
Owner

@Fred-Barclay commented on GitHub (Nov 8, 2017):

@badpenguin In trying to debug this I've noticed that firejail 0.9.44.8 doesn't come with the telegram-desktop.profile that's included in later versions. Can you run firejail --profile=/etc/firejail/telegram.profile telegram-desktop and see if the tray icon is still messed up?

Also, if this doesn't work, can you tell me how you set up your system (what Ubuntu flavor did you start with and how did you install openbox?) so I can get a similar setup here?

This is the icon I get

<!-- gh-comment-id:342688280 --> @Fred-Barclay commented on GitHub (Nov 8, 2017): @badpenguin In trying to debug this I've noticed that firejail 0.9.44.8 doesn't come with the `telegram-desktop.profile` that's included in later versions. Can you run `firejail --profile=/etc/firejail/telegram.profile telegram-desktop` and see if the tray icon is still messed up? Also, if this doesn't work, can you tell me how you set up your system (what Ubuntu flavor did you start with and how did you install openbox?) so I can get a similar setup here? This is the icon I get ![](https://s1.postimg.org/8427nva18v/image.png)
Author
Owner

@badpenguin commented on GitHub (Nov 8, 2017):

@Fred-Barclay sorry, i've switched to Xfce, cannot help anytime soon

<!-- gh-comment-id:342736366 --> @badpenguin commented on GitHub (Nov 8, 2017): @Fred-Barclay sorry, i've switched to Xfce, cannot help anytime soon
Author
Owner

@Fred-Barclay commented on GitHub (Nov 8, 2017):

No worries! Let's close this for now and we can reopen if someone else is able to duplicate. 😄

<!-- gh-comment-id:342880370 --> @Fred-Barclay commented on GitHub (Nov 8, 2017): No worries! Let's close this for now and we can reopen if someone else is able to duplicate. 😄
Author
Owner

@emerajid commented on GitHub (Aug 3, 2022):

Hi.

I do not want to create new issue, so will write here I guess?

System: Debian 11
DE: plain xfce4
Telegram version: 4.0.2
Telegram profile (slightly modified compared to the one in repository): https://pastebin.com/wNr6irsP
Telegram local config: https://pastebin.com/r33u5wzf
Global definitions: none
Problem: tray icon is white square with a red cross, instead of blue (and meaningful) telegram icon.
What breaks: dbus-user.talk org.kde.StatusNotifierWatcher
Note:
If I just comment out that line, everything works fine. I also noticed, that if you throw out all dbus related lines, then icon will not work unless include whitelist-runuser-common.inc is commented out, perhaps because qt-trayicon.png is being created in another /var/run/user/$UID/, which is inaccessible to jailed process. If I throw out all dbus related lines and do dbus-system none dbus-user none everything works fine.

If this is anyhow an issue, I can help debugging it, if no, then no.

<!-- gh-comment-id:1203726307 --> @emerajid commented on GitHub (Aug 3, 2022): Hi. I do not want to create new issue, so will write here I guess? System: Debian 11 DE: plain xfce4 Telegram version: 4.0.2 Telegram profile (slightly modified compared to the one in repository): https://pastebin.com/wNr6irsP Telegram local config: https://pastebin.com/r33u5wzf Global definitions: none Problem: tray icon is white square with a red cross, instead of blue (and meaningful) telegram icon. What breaks: _dbus-user.talk org.kde.StatusNotifierWatcher_ Note: If I just comment out that line, everything works fine. I also noticed, that if you throw out all dbus related lines, then icon will not work unless _include whitelist-runuser-common.inc_ is commented out, perhaps because qt-trayicon.png is being created in another /var/run/user/$UID/, which is inaccessible to jailed process. If I throw out all dbus related lines and do _dbus-system none dbus-user none_ everything works fine. If this is anyhow an issue, I can help debugging it, if no, then no.
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#984
No description provided.