[GH-ISSUE #1391] Okular won't start the second instance - can't open more than one pdf file at the same time #950

Closed
opened 2026-05-05 07:12:36 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @ghost on GitHub (Jul 17, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1391

Originally created by @ghost on GitHub (Jul 17, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1391
gitea-mirror 2026-05-05 07:12:36 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@curiosity-seeker commented on GitHub (Jul 17, 2017):

This works for me - see also my remarks here. I'm also using the Firejail git version.

<!-- gh-comment-id:315778668 --> @curiosity-seeker commented on GitHub (Jul 17, 2017): This works for me - see also my remarks [here](https://github.com/netblue30/firejail/issues/725#issuecomment-315777753). I'm also using the Firejail git version.
Author
Owner

@smitsohu commented on GitHub (Jul 18, 2017):

For me, running firejail --ignore=protocol okular solves the issue.

What is interesting though, running firejail --protocol=unix,inet,inet6,netlink okular doesn't solve it.

<!-- gh-comment-id:316065081 --> @smitsohu commented on GitHub (Jul 18, 2017): ~~For me, running `firejail --ignore=protocol okular` solves the issue.~~ ~~What is interesting though, running `firejail --protocol=unix,inet,inet6,netlink okular` doesn't solve it.~~
Author
Owner

@smitsohu commented on GitHub (Jul 18, 2017):

@rekixex Hmmm, I can't reproduce it anymore (the solution, the bug is still there).
Please forget about it :-/

<!-- gh-comment-id:316171393 --> @smitsohu commented on GitHub (Jul 18, 2017): @rekixex Hmmm, I can't reproduce it anymore (the solution, the bug is still there). Please forget about it :-/
Author
Owner

@st31ny commented on GitHub (Jan 24, 2018):

@rekixex I am on Debian stable and observed a similar behaviour:

okular(3)/kdeui (kdelibs): Couldn't register name ' "org.kde.okular-3" ' with DBUS - another process owns it already!

For me, upgrading firejail-profiles to version 0.9.52-2 (currently in buster) fixed the issue.

<!-- gh-comment-id:360115042 --> @st31ny commented on GitHub (Jan 24, 2018): @rekixex I am on Debian stable and observed a similar behaviour: okular(3)/kdeui (kdelibs): Couldn't register name ' "org.kde.okular-3" ' with DBUS - another process owns it already! For me, upgrading `firejail-profiles` to version 0.9.52-2 (currently in buster) fixed the issue.
Author
Owner

@smitsohu commented on GitHub (Jan 26, 2018):

If you launch several instances of okular, firejail keeps each in its own PID namespace.

The problem is the following:

  1. all names on a bus must be unique,
  2. each okular instance tries to register a name on D-Bus, and they differ only by PID,
  3. PIDs are unique only inside a namespace.

So when you see this error message, two instances of okular have exactly the same PID inside their sandboxes.... you can easily convince yourself by joining the sandboxes and running top e.g.

<!-- gh-comment-id:360668905 --> @smitsohu commented on GitHub (Jan 26, 2018): If you launch several instances of okular, firejail keeps each in its own PID namespace. The problem is the following: 1) all names on a bus must be unique, 2) each okular instance tries to register a name on D-Bus, and they differ only by PID, 3) PIDs are unique only _inside_ a namespace. So when you see this error message, two instances of okular have exactly the same PID inside their sandboxes.... you can easily convince yourself by joining the sandboxes and running top e.g.
Author
Owner

@smitsohu commented on GitHub (Feb 25, 2018):

#1784 and this issue are closely related.

It should work when join-or-start okular is added to the profile. But I'm away from my workstation and can't test myself in the moment.

<!-- gh-comment-id:368342318 --> @smitsohu commented on GitHub (Feb 25, 2018): #1784 and this issue are closely related. It should work when `join-or-start okular` is added to the profile. But I'm away from my workstation and can't test myself in the moment.
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#950
No description provided.