[GH-ISSUE #6744] simple-scan: cannot open "save file" dialog #3355

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

Originally created by @Markus-N on GitHub (May 7, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6744

Description

I'm using firejail on Arch Linux with XFCE desktop. When starting simple-scan via firejail, I can not save the scanned documents, the "save file" dialog does not even open. Running simple-scan directly works fine.

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash LC_ALL=C firejail /path/to/program (LC_ALL=C to get a consistent output in English that can be understood by everybody)
  2. Start scan
  3. Click on the "Export" button (left of the hamburger menu)

Expected behavior

The "Save file" dialog should open.

Actual behavior

When I click on the "Export" button, nothing happens.

Behavior without a profile

What changed calling LC_ALL=C firejail --noprofile /path/to/program in a terminal?
Works normally.

Additional context

Any other detail that may help to understand/debug the problem
As I'm using simple-scan rarely, I can not tell when the problem was introduced. What I know is: Maybe it never would have worked with firejail, but was not included in /etc/firejail/firecfg.config until recently.

Environment

  • Name/version/arch of the Linux kernel (uname -srm):
    Linux TuxServer 6.12.23-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 10 Apr 2025 13:28:36 +0000 x86_64 GNU/Linux
  • Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"):
    Arch Linux
  • Name/version of the relevant program(s)/package(s):
    simple-scan 48.1-1
  • Version of Firejail (firejail --version):
    firejail version 0.9.74
  • If you use a development version of firejail, also the commit from which it
    was compiled (git rev-parse HEAD):
    N/A

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
  • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of LC_ALL=C firejail /path/to/program

LC_ALL=C firejail /usr/bin/simple-scan
Reading profile /etc/firejail/simple-scan.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.74

Seccomp list in: !ioperm, check list: @default-keep, prelist: unknown,
Parent pid 705466, child pid 705471
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Base filesystem installed in 270.99 ms
Seccomp list in: !ioperm, check list: @default-keep, prelist: unknown,
Child process initialized in 327.46 ms

(simple-scan:6): Gtk-WARNING **: 17:41:09.504: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/705481/root
MIB search path: /home/markus/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (UCD-IPFWACC-MIB): At line 0 in (none)
Cannot find module (TUNNEL-MIB): At line 0 in (none)
Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)

(simple-scan:6): Gtk-WARNING **: 17:41:22.111: Calling org.freedesktop.portal.Inhibit.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/705481/root

Output of LC_ALL=C firejail --debug /path/to/program

gist

Originally created by @Markus-N on GitHub (May 7, 2025). Original GitHub issue: https://github.com/netblue30/firejail/issues/6744 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description I'm using firejail on Arch Linux with XFCE desktop. When starting simple-scan via firejail, I can not save the scanned documents, the "save file" dialog does not even open. Running simple-scan directly works fine. ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Run in bash `LC_ALL=C firejail /path/to/program` (`LC_ALL=C` to get a consistent output in English that can be understood by everybody) 2. Start scan 3. Click on the "Export" button (left of the hamburger menu) ### Expected behavior The "Save file" dialog should open. ### Actual behavior When I click on the "Export" button, nothing happens. ### Behavior without a profile _What changed calling `LC_ALL=C firejail --noprofile /path/to/program` in a terminal?_ Works normally. ### Additional context _Any other detail that may help to understand/debug the problem_ As I'm using simple-scan rarely, I can not tell when the problem was introduced. What I know is: Maybe it never would have worked with firejail, but was not included in `/etc/firejail/firecfg.config` until recently. ### Environment - Name/version/arch of the Linux kernel (`uname -srm`): Linux TuxServer 6.12.23-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 10 Apr 2025 13:28:36 +0000 x86_64 GNU/Linux - Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Arch Linux - Name/version of the relevant program(s)/package(s): simple-scan 48.1-1 - Version of Firejail (`firejail --version`): firejail version 0.9.74 - If you use a development version of firejail, also the commit from which it was compiled (`git rev-parse HEAD`): N/A ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>LC_ALL=C firejail /path/to/program</code></summary> <p> ``` LC_ALL=C firejail /usr/bin/simple-scan Reading profile /etc/firejail/simple-scan.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.74 Seccomp list in: !ioperm, check list: @default-keep, prelist: unknown, Parent pid 705466, child pid 705471 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Base filesystem installed in 270.99 ms Seccomp list in: !ioperm, check list: @default-keep, prelist: unknown, Child process initialized in 327.46 ms (simple-scan:6): Gtk-WARNING **: 17:41:09.504: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/705481/root MIB search path: /home/markus/.snmp/mibs:/usr/share/snmp/mibs Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none) Cannot find module (UCD-IPFWACC-MIB): At line 0 in (none) Cannot find module (TUNNEL-MIB): At line 0 in (none) Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none) Cannot find module (UCD-DISKIO-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (LM-SENSORS-MIB): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (IPV6-ICMP-MIB): At line 0 in (none) Cannot find module (IPV6-MIB): At line 0 in (none) Cannot find module (IPV6-TCP-MIB): At line 0 in (none) Cannot find module (IPV6-UDP-MIB): At line 0 in (none) Cannot find module (IP-FORWARD-MIB): At line 0 in (none) Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none) Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none) (simple-scan:6): Gtk-WARNING **: 17:41:22.111: Calling org.freedesktop.portal.Inhibit.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/705481/root ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /path/to/program</code></summary> <p> [gist](https://gist.github.com/Markus-N/f7c227b28e3ec6aee6cf119d43f35ab3) </p> </details>
gitea-mirror added the
needinfo
label 2026-05-05 09:56:16 -06:00
Author
Owner

@JacobHenner commented on GitHub (Oct 21, 2025):

I can reproduce this issue as well, Arch Linux with GNOME.

<!-- gh-comment-id:3427183124 --> @JacobHenner commented on GitHub (Oct 21, 2025): I can reproduce this issue as well, Arch Linux with GNOME.
Author
Owner

@kmk3 commented on GitHub (Oct 23, 2025):

As I'm using simple-scan rarely, I can not tell when the problem was
introduced. What I know is: Maybe it never would have worked with firejail,
but was not included in /etc/firejail/firecfg.config until recently.

It looks like it was included in firecfg.config on commit bc257b6a4 ("added
akregator, kcalc and ktorrent profiles", 2017-04-24), so not exactly recently.

firejail version 0.9.74

What happens in 0.9.76?

(simple-scan:6): Gtk-WARNING **: 17:41:09.504: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/705481/root
MIB search path: /home/markus/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (SNMPv2-MIB): At line 0 in (none)

What happens with the following in simple-scan.local?

whitelist /usr/share/snmp

For debugging, try commenting lines in the profile until it works to find out
which lines are causing problems and then post them in here.

<!-- gh-comment-id:3436010968 --> @kmk3 commented on GitHub (Oct 23, 2025): > As I'm using simple-scan rarely, I can not tell when the problem was > introduced. What I know is: Maybe it never would have worked with firejail, > but was not included in `/etc/firejail/firecfg.config` until recently. It looks like it was included in firecfg.config on commit bc257b6a4 ("added akregator, kcalc and ktorrent profiles", 2017-04-24), so not exactly recently. > firejail version 0.9.74 What happens in 0.9.76? > ``` > (simple-scan:6): Gtk-WARNING **: 17:41:09.504: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/705481/root > MIB search path: /home/markus/.snmp/mibs:/usr/share/snmp/mibs > Cannot find module (SNMPv2-MIB): At line 0 in (none) > ``` What happens with the following in simple-scan.local? ``` whitelist /usr/share/snmp ``` For debugging, try commenting lines in the profile until it works to find out which lines are causing problems and then post them in here.
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#3355
No description provided.