[GH-ISSUE #5678] okular: cannot open file with --private= and --read-only= #3058

Open
opened 2026-05-05 09:42:09 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @bobblkabb on GitHub (Feb 23, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5678

I'm running version 0.9.70 on openSUSE Leap 15.4 and got following problem:

When I run
firejail --seccomp --private=/home/kaiser/Firejail/okular --read-only=~/Downloads okular
from the shell it works fine. If I want to open a file in okular it actually opens the download folder.
But when I make a menu entry with the very same command it doesn't open the download folder.

Any ideas?

Originally created by @bobblkabb on GitHub (Feb 23, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/5678 I'm running version 0.9.70 on openSUSE Leap 15.4 and got following problem: When I run `firejail --seccomp --private=/home/kaiser/Firejail/okular --read-only=~/Downloads okular` from the shell it works fine. If I want to open a file in okular it actually opens the download folder. But when I make a menu entry with the very same command it doesn't open the download folder. Any ideas?
gitea-mirror added the
needinfo
label 2026-05-05 09:42:09 -06:00
Author
Owner

@ghost commented on GitHub (Feb 23, 2023):

How does your menu entry look like exactly? If by a menu entry you mean using a .desktop file, have you tried using Exec=sh -c 'firejail --seccomp --private=/home/kaiser/Firejail/okular --read-only=~/Downloads okular' yet?

Side note: try to upgrade your firejail to the latest release, which is 0.9.72 at the time of writing.

<!-- gh-comment-id:1441442954 --> @ghost commented on GitHub (Feb 23, 2023): How does your menu entry look like exactly? If by a menu entry you mean using a .desktop file, have you tried using `Exec=sh -c 'firejail --seccomp --private=/home/kaiser/Firejail/okular --read-only=~/Downloads okular'` yet? Side note: try to upgrade your firejail to the latest release, which is [0.9.72](https://github.com/netblue30/firejail/releases) at the time of writing.
Author
Owner

@bobblkabb commented on GitHub (Feb 23, 2023):

It looks exactly the same as the shell command and it opens okular..
Running KDE Plasma. It has a menu editor.
Exec=sh -c 'firejail... doesn't open okular at all.

Latest version isn't available yet.

<!-- gh-comment-id:1441467968 --> @bobblkabb commented on GitHub (Feb 23, 2023): It looks exactly the same as the shell command and it opens okular.. Running KDE Plasma. It has a menu editor. Exec=sh -c 'firejail... doesn't open okular at all. Latest version isn't available yet.
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#3058
No description provided.