[GH-ISSUE #1619] Firejail breaks media controls in Plasma taskbar #1084

Closed
opened 2026-05-05 07:26:03 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @rc2dev on GitHub (Oct 26, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1619

I posted this bug to KDE.

Apparently, the cause is that _NET_WM_PID is different from the PID of the jailed program.

$ pidof vlc
3466

$ pidof firejail
3457

$ qdbus org.freedesktop.DBus / org.freedesktop.DBus.GetConnectionUnixProcessID \
  org.mpris.MediaPlayer2.vlc
3466

$ xprop | grep PID
_NET_WM_PID(CARDINAL) = 9
Originally created by @rc2dev on GitHub (Oct 26, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1619 I posted [this bug to KDE](https://bugs.kde.org/show_bug.cgi?id=384837). Apparently, the cause is that _NET_WM_PID is different from the PID of the jailed program. $ pidof vlc 3466 $ pidof firejail 3457 $ qdbus org.freedesktop.DBus / org.freedesktop.DBus.GetConnectionUnixProcessID \ org.mpris.MediaPlayer2.vlc 3466 $ xprop | grep PID _NET_WM_PID(CARDINAL) = 9
gitea-mirror 2026-05-05 07:26:03 -06:00
Author
Owner

@smitsohu commented on GitHub (Nov 1, 2017):

just tried it out in Mate, it is also the reason for #258. Mate labels the titlebar with "as superuser" if _NET_WM_PID indicates root ownership.

<!-- gh-comment-id:341237355 --> @smitsohu commented on GitHub (Nov 1, 2017): just tried it out in Mate, it is also the reason for #258. Mate labels the titlebar with "as superuser" if _NET_WM_PID indicates root ownership.
Author
Owner

@smitsohu commented on GitHub (Nov 2, 2017):

Apparently, the cause is that _NET_WM_PID is different from the PID of the jailed program.

The reason is that _NET_WM_PID is set to the PID inside the sandbox. Whatever sets _NET_WM_PID, it is not aware of PID namespaces.

<!-- gh-comment-id:341285515 --> @smitsohu commented on GitHub (Nov 2, 2017): > Apparently, the cause is that _NET_WM_PID is different from the PID of the jailed program. The reason is that _NET_WM_PID is set to the PID _inside_ the sandbox. Whatever sets _NET_WM_PID, it is not aware of PID namespaces.
Author
Owner

@smitsohu commented on GitHub (Nov 3, 2017):

See also #1084

<!-- gh-comment-id:341685472 --> @smitsohu commented on GitHub (Nov 3, 2017): See also #1084
Author
Owner

@smitsohu commented on GitHub (Nov 4, 2017):

It looks Gnome have chosen a workaround for Flatpak only: https://bugzilla.gnome.org/show_bug.cgi?id=772615

<!-- gh-comment-id:341865361 --> @smitsohu commented on GitHub (Nov 4, 2017): It looks Gnome have chosen a workaround for Flatpak only: https://bugzilla.gnome.org/show_bug.cgi?id=772615
Author
Owner

@chiraag-nataraj commented on GitHub (May 22, 2019):

Is this still an issue? I presume it is...

<!-- gh-comment-id:494715523 --> @chiraag-nataraj commented on GitHub (May 22, 2019): Is this still an issue? I presume it is...
Author
Owner

@rc2dev commented on GitHub (May 23, 2019):

@chiraag-nataraj I'm not using Plasma currently, so I can't say.

<!-- gh-comment-id:495321366 --> @rc2dev commented on GitHub (May 23, 2019): @chiraag-nataraj I'm not using Plasma currently, so I can't say.
Author
Owner

@chiraag-nataraj commented on GitHub (May 23, 2019):

Okay, I'll close this for now. Please feel free to re-open if you're experiencing this and we'll take a look then.

<!-- gh-comment-id:495405297 --> @chiraag-nataraj commented on GitHub (May 23, 2019): Okay, I'll close this for now. Please feel free to re-open if you're experiencing this and we'll take a look then.
Author
Owner

@Vincent43 commented on GitHub (Jul 28, 2019):

This is fixed in KDE Frameworks 5.61

<!-- gh-comment-id:515763922 --> @Vincent43 commented on GitHub (Jul 28, 2019): This is fixed in [KDE Frameworks 5.61](https://bugs.kde.org/show_bug.cgi?id=384837#c8)
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#1084
No description provided.