[GH-ISSUE #2953] Need help for plasma browser integration #1847

Closed
opened 2026-05-05 08:30:57 -06:00 by gitea-mirror · 22 comments
Owner

Originally created by @CodeArtisan00 on GitHub (Sep 9, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2953

I have installed plasma integration extension for firefox(nightly) & it does work if firefox ain't firejailed. So is there a way to make it work inside firejail? Inside firejail it's showing "failed to connect to native host".

Originally created by @CodeArtisan00 on GitHub (Sep 9, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2953 I have installed plasma integration extension for firefox(nightly) & it does work if firefox ain't firejailed. So is there a way to make it work inside firejail? Inside firejail it's showing "failed to connect to native host".
gitea-mirror 2026-05-05 08:30:57 -06:00
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

4ed69edbc4/etc/firefox-common.profile (L37-L39)

Try adding ignore nodbus to firefox.local.

<!-- gh-comment-id:529495813 --> @rusty-snake commented on GitHub (Sep 9, 2019): https://github.com/netblue30/firejail/blob/4ed69edbc47ea0a3cb6b68b9dfa84cb189ad1faa/etc/firefox-common.profile#L37-L39 Try adding `ignore nodbus` to `firefox.local`.
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

It's still showing the same message. btw, I have private etc enabled in firefox-common.profile
can that be the reason?

<!-- gh-comment-id:529497940 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): It's still showing the same message. btw, I have private etc enabled in firefox-common.profile can that be the reason?
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

Possible, but I think that rather one more path needs to be whitelisted.

<!-- gh-comment-id:529498965 --> @rusty-snake commented on GitHub (Sep 9, 2019): Possible, but I think that rather one more path needs to be whitelisted.
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

which one?

<!-- gh-comment-id:529499583 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): which one?
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

Thats the big question. 🙄

<!-- gh-comment-id:529501145 --> @rusty-snake commented on GitHub (Sep 9, 2019): Thats the big question. :roll_eyes:
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

I have disabled private-etc, but the problem persists.

<!-- gh-comment-id:529502376 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): I have disabled private-etc, but the problem persists.
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

Have you enabled private-bin?

<!-- gh-comment-id:529504499 --> @rusty-snake commented on GitHub (Sep 9, 2019): Have you enabled private-bin?
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

yea in firefox profile.

<!-- gh-comment-id:529505296 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): yea in firefox profile.
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

done... just had to add plasma-browser-integration-host in private-bin

Thanks

<!-- gh-comment-id:529506949 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): done... just had to add plasma-browser-integration-host in private-bin Thanks
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

63721fad1a/org.kde.plasma.firefox_integration.json.in (L4)
Try adding private-bin plasma-browser-integration-host to firefox.local.

<!-- gh-comment-id:529507067 --> @rusty-snake commented on GitHub (Sep 9, 2019): https://github.com/KDE/plasma-browser-integration/blob/63721fad1a3b04ccf9fef4e7d86bfac359625150/org.kde.plasma.firefox_integration.json.in#L4 Try adding `private-bin plasma-browser-integration-host` to firefox.local.
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

can I ask another question which is not related with this issue or should I open a new one?

<!-- gh-comment-id:529510049 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): can I ask another question which is not related with this issue or should I open a new one?
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

If an other user has the same question it's easy to find it in a new issue.

<!-- gh-comment-id:529510417 --> @rusty-snake commented on GitHub (Sep 9, 2019): If an other user has the same question it's easy to find it in a new issue.
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

ok

<!-- gh-comment-id:529510738 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): ok
Author
Owner

@rusty-snake commented on GitHub (Sep 9, 2019):

@Neo00001

nodbus
private-bin plasma-browser-integration-host

With it works, right?

<!-- gh-comment-id:529511167 --> @rusty-snake commented on GitHub (Sep 9, 2019): @Neo00001 ``` nodbus private-bin plasma-browser-integration-host ``` With it works, right?
Author
Owner

@CodeArtisan00 commented on GitHub (Sep 9, 2019):

ignore nodbus & private-bin plasma-browser-integration-host

<!-- gh-comment-id:529512333 --> @CodeArtisan00 commented on GitHub (Sep 9, 2019): ignore nodbus & private-bin plasma-browser-integration-host
Author
Owner
<!-- gh-comment-id:529514278 --> @rusty-snake commented on GitHub (Sep 9, 2019): Wiki done: https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#how-do-i-enable-plasma-browser-integration-in-firefox
Author
Owner

@CodeArtisan00 commented on GitHub (Oct 25, 2020):

with xdg-dbus-proxy having some problem. basic media control works but progress of downloads in notification are doesn't work properly.
with

dbus-user filter
dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*
dbus-user.talk org.freedesktop.Notifications
ignore dbus-user none

it shows pic1. so I added dbus-user.talk org.kde.JobViewServer & now it shows pic2 along with pic1. Desired is only pic2.

If I use only ignore dbus-user none without any dbus-user filter it works as intended. So most likely some other portals must have to be allowed. Any help or hint will be appreciated.

btw,is there any way to trace dbus call or trace/log blocked dbus call? hope it makes sense

<!-- gh-comment-id:716186711 --> @CodeArtisan00 commented on GitHub (Oct 25, 2020): with `xdg-dbus-proxy` having some problem. basic media control works but progress of downloads in notification are doesn't work properly. with > dbus-user filter dbus-user.own org.mozilla.firefox.* dbus-user.own org.mpris.MediaPlayer2.firefox.* dbus-user.talk org.freedesktop.Notifications ignore dbus-user none it shows [pic1](https://imgur.com/FMT0OeG). so I added `dbus-user.talk org.kde.JobViewServer` & now it shows [pic2](https://imgur.com/scotMEC) along with [pic1](https://imgur.com/FMT0OeG). Desired is only [pic2](https://imgur.com/scotMEC). If I use only `ignore dbus-user none` without any `dbus-user filter` it works as intended. So most likely some other portals must have to be allowed. Any help or hint will be appreciated. btw,is there any way to trace dbus call or trace/log blocked dbus call? hope it makes sense
Author
Owner

@rusty-snake commented on GitHub (Oct 26, 2020):

btw,is there any way to trace dbus call or trace/log blocked dbus call? hope it makes sense

You can inspect D-Bus names with d-feet or qdbus-viewer or in /usr/share/dbus-1/services/*. To trace/monitor D-Bus calls in the sandbox you can use firejail --log-dbus but this works only for dbus-user filter. Or you can monitor you session-bus with tools such as dbus-monitor, bustle or busctl monitor, However monitoring the session-bus creates a lot of spam which is not form the sandbox. I plan to write a script which catches all the D-Bus traffic of a program using dbus-daemon and dbus-monitor, but I do not have that time ATM. If the program has a flatpak, you can also look at it's permissions.

<!-- gh-comment-id:716453195 --> @rusty-snake commented on GitHub (Oct 26, 2020): > btw,is there any way to trace dbus call or trace/log blocked dbus call? hope it makes sense You can inspect D-Bus names with d-feet or qdbus-viewer or in /usr/share/dbus-1/services/*. To trace/monitor D-Bus calls in the sandbox you can use `firejail --log-dbus` but this works only for `dbus-user filter`. Or you can monitor you session-bus with tools such as dbus-monitor, bustle or busctl monitor, However monitoring the session-bus creates a lot of spam which is not form the sandbox. I plan to write a script which catches all the D-Bus traffic of a program using dbus-daemon and dbus-monitor, but I do not have that time ATM. If the program has a flatpak, you can also look at it's permissions.
Author
Owner

@CodeArtisan00 commented on GitHub (Oct 26, 2020):

btw,is there any way to trace dbus call or trace/log blocked dbus call? hope it makes sense

You can inspect D-Bus names with d-feet or qdbus-viewer or in /usr/share/dbus-1/services/*. To trace/monitor D-Bus calls in the sandbox you can use firejail --log-dbus but this works only for dbus-user filter. Or you can monitor you session-bus with tools such as dbus-monitor, bustle or busctl monitor, However monitoring the session-bus creates a lot of spam which is not form the sandbox. I plan to write a script which catches all the D-Bus traffic of a program using dbus-daemon and dbus-monitor, but I do not have that time ATM. If the program has a flatpak, you can also look at it's permissions.

ok... I will look into these later.

<!-- gh-comment-id:716474311 --> @CodeArtisan00 commented on GitHub (Oct 26, 2020): > > btw,is there any way to trace dbus call or trace/log blocked dbus call? hope it makes sense > > You can inspect D-Bus names with d-feet or qdbus-viewer or in /usr/share/dbus-1/services/*. To trace/monitor D-Bus calls in the sandbox you can use `firejail --log-dbus` but this works only for `dbus-user filter`. Or you can monitor you session-bus with tools such as dbus-monitor, bustle or busctl monitor, However monitoring the session-bus creates a lot of spam which is not form the sandbox. I plan to write a script which catches all the D-Bus traffic of a program using dbus-daemon and dbus-monitor, but I do not have that time ATM. If the program has a flatpak, you can also look at it's permissions. ok... I will look into these later.
Author
Owner

@CodeArtisan00 commented on GitHub (Oct 26, 2020):

ok. here what worked for me.

dbus-user.talk org.kde.JobViewServer
dbus-user.talk org.kde.kuiserver

thanks for the help.

<!-- gh-comment-id:716754974 --> @CodeArtisan00 commented on GitHub (Oct 26, 2020): ok. here what worked for me. ``` dbus-user.talk org.kde.JobViewServer dbus-user.talk org.kde.kuiserver ``` thanks for the help.
Author
Owner

@rusty-snake commented on GitHub (Oct 27, 2020):

So your dbus-policy for firefox looks like this.

dbus-user filter
dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.kde.JobViewServer
dbus-user.talk org.kde.kuiserver
ignore dbus-user none

Works plasma browser integration w/o org.freedesktop.Notifications? (I want to add a note to firefox.profile.)

<!-- gh-comment-id:717156587 --> @rusty-snake commented on GitHub (Oct 27, 2020): So your dbus-policy for firefox looks like this. ``` dbus-user filter dbus-user.own org.mozilla.firefox.* dbus-user.own org.mpris.MediaPlayer2.firefox.* dbus-user.talk org.freedesktop.Notifications dbus-user.talk org.kde.JobViewServer dbus-user.talk org.kde.kuiserver ignore dbus-user none ``` Works plasma browser integration w/o `org.freedesktop.Notifications`? (I want to add a note to firefox.profile.)
Author
Owner

@CodeArtisan00 commented on GitHub (Oct 27, 2020):

Works plasma browser integration w/o org.freedesktop.Notifications? (I want to add a note to firefox.profile.)

plasma browser integration works without org.freedesktop.Notifications & regarding proper functioning of plasma browser integration you don't need

dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*

I'm using this

dbus-user filter
dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
dbus-user.talk org.kde.JobViewServer
dbus-user.talk org.kde.kuiserver
ignore dbus-user none

if instead of dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration I use

dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*

then I can pause & resume media from system tray but can't get the thumbnail & the progress bar.

Spec-
OS: Arch(KDE plasma) Kernel: 5.9.1 Plasma ver: 5.20.2 firejail ver:0.9.64

<!-- gh-comment-id:717429342 --> @CodeArtisan00 commented on GitHub (Oct 27, 2020): > Works plasma browser integration w/o `org.freedesktop.Notifications`? (I want to add a note to firefox.profile.) plasma browser integration works without `org.freedesktop.Notifications` & regarding proper functioning of plasma browser integration you don't need ``` dbus-user.own org.mozilla.firefox.* dbus-user.own org.mpris.MediaPlayer2.firefox.* ``` I'm using this ``` dbus-user filter dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration dbus-user.talk org.kde.JobViewServer dbus-user.talk org.kde.kuiserver ignore dbus-user none ``` if instead of `dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration` I use ``` dbus-user.own org.mozilla.firefox.* dbus-user.own org.mpris.MediaPlayer2.firefox.* ``` then I can pause & resume media from system tray but can't get the thumbnail & the progress bar. Spec- `OS`: Arch(KDE plasma) `Kernel`: 5.9.1 `Plasma ver`: 5.20.2 `firejail ver`:0.9.64
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#1847
No description provided.