mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3540] Signal-desktop icon in mate notification tray not displayed #2225
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#2225
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 @NH0 on GitHub (Jul 23, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3540
When using signal-desktop with firejail and the signal-desktop profile from the git, the notification icon shows a gray forbidden sign instead of the signal icon.
When starting with
--no-profilethe icon is correctly displayed. When starting the app without firejail the icon is correctly displayed.Reproduce
Steps to reproduce the behavior:
firejail signal-desktop --use-tray-iconEnvironment
@rusty-snake commented on GitHub (Jul 23, 2020):
To late for me now. I need to sleep 😴 . The relevant things should be #1137 +
dbus-user filter.@NH0 commented on GitHub (Jul 23, 2020):
Thanks !
I believe I don't have exactly the same issue as #1137 because I can see an icon, it just isn't the right one (it must be a default one I guess).
I've installed the xdg-dbus-proxy and them tried to set
dbus-user filteranddbus-user.call org.freedesktop.Notificationsin my local profile but I can't seem to make it work.I have the following error :
Error: line 1 in /home/nh0/.config/firejail/signal-desktop.local is invalid@smitsohu commented on GitHub (Jul 23, 2020):
@NH0 that's because D-Bus filtering is a new feature. It's not available in 0.9.62 and for now exists only in the git version.
@ghost commented on GitHub (Jul 23, 2020):
As pointed out above, you'll need to build firejail from git for this to work. There are instructions in our wiki.
@rusty-snake commented on GitHub (Jul 24, 2020):
... or use
ignore nodbus.You would need a talk rule and org.freedesktop.Notifications is the wrong name. I think it is
org.freedesktop.StatusNotifierItem.@NH0 commented on GitHub (Jul 24, 2020):
Thanks for the replies !
I've updated firejail from git, now using firejail 0.9.63.
I now get the same problem as #1137 : I don't see an icon anymore in the notification area.
I tried using
ignore nodbusbut it didn't change anything, so I guess it's actually not the problem.I've looked at the solution from #1137 and here is my signal-desktop.local :
However, still no icon.
@rusty-snake commented on GitHub (Jul 25, 2020):
Works it if you
ignore private-tmpinstead of this workaround?@NH0 commented on GitHub (Jul 27, 2020):
Nop, it didn't change anything.
@smitsohu commented on GitHub (Aug 5, 2020):
We need to find the line in the profile that is breaking it. As profiles typically are short, a simple way is to just comment out all lines, and then uncomment line after line till it breaks.
This profile could be a bit more difficult to debug as it has whitelisting. Does it work with
firejail --ignore=whitelist signal-desktop --use-tray-icon? If yes, could you also tryfirejail --whitelist=~/.cache signal-desktop --use-tray-icon?The easiest would be to run
firejail --build signal-desktop --use-tray-iconand post the output here, but I'm afraid it will fail in this case.@NH0 commented on GitHub (Aug 5, 2020):
Following your advice and based on what has been said on this issue, I tried commenting out some lines in the profile file (/etc/firejail/signal-desktop.profile), and I got it to work by commenting out:
Removing
dbus-user noneallowed me to have a broken icon in the notification tray, and removingprivate-tmpallowed me to have the correct icon displayed.I don't know why
ignore private-tmpandignore nodbusdidn't work before.Do you think it's possible to find a middle ground between :
dbus-userandprivate-tmplinesThat would be great !
Note :
firejail --ignore=whitelist signal-desktop --use-tray-icondidn't work@rusty-snake commented on GitHub (Aug 5, 2020):
Because there is no
nodbusin 0.9.63 anymore which can be ignored.Can uncomment these lines again and try this signal-desktop.local:
@NH0 commented on GitHub (Aug 5, 2020):
Finally got it :
Thanks for your quick responses and your help 💯
@ckotte commented on GitHub (Oct 21, 2020):
I have the same issue with evince on GNOME. The icon isn't displayed until I set
ignore dbus-user none. However, I can set anything fordbus-user.talk. It looks like this setting doesn't have any effect.I would like to further restrict the DBUS access. So, does
dbus-user filterrestricts the DBUS access again whenignore dbus-user nonewas specified before?How can I find out the correct well-known name for
dbus-user.talk?@rusty-snake commented on GitHub (Oct 21, 2020):
Hi, I use this in my evince.local to have the evince icon displayed in my dash-to-dock panel.
So you can simply first set
filterand the ignorenone, but it does not matter becauseignoreis a simple text-match which is applied while parsing and just skips line where a previousignorematches. Anddbus-user nonedoes not macthdbus-user filter.ATM the is no perfect way. You can look at flatpak permissions, use firejail's
--dbus-logoption ordbus-monitor. For tray-icons I can tell you that there are two common standards,org.freedesktop.StatusNotifierItemandorg.kde.StatusNotifierWatcher. Depending on the shell-extension you use for tray-icons you need the first one or the last one.@ckotte commented on GitHub (Oct 21, 2020):
May I ask what the benefit of
filteris if you don't use any of the other options? I can only see combinations offilterwithdbus-user.call,dbus-user.talk, etc. pp. in the manpage.It also doesn't matter which setting I add. I can always see the icon as long as I have
ignore dbus-user none@rusty-snake commented on GitHub (Oct 21, 2020):
IDK why it work with
filterwithout rules, but not withnone. Maybe it's the error handling from glib/gtk.