[sane-devel] Scanner portal for Flatpak

Ben Olden-Cooligan ben.cyanfish at gmail.com
Fri Nov 13 18:30:32 GMT 2026


As the author of NAPS2 <https://github.com/cyanfish/naps2>, it seems like
the model here is pretty restrictive and centered around one-off scanning.
For example NAPS2 has lots of features around setting up profiles with
different devices which don't match at all with this model.

While the current approach may make sense for some applications, it would
be awesome to have an "all scanners" permission option that allows
enumerating scanners and scanning with any of them on demand. For NAPS2 the
main value in such a portal is not having the more granular permissions,
but rather being able to use proprietary drivers (e.g. brscan4) that can't
live in the sandbox (which is the main limitation of the NAPS2 flatpak and
the reason I direct people to deb/rpm as the preferred distribution method).

On Thu, Nov 12, 2026 at 6:10 AM Christian Schaller <
christian.schaller at gmail.com> wrote:

> Hi Sane-devs,
> I been working on a scanning application to be able to archive all my old
> negatives using my Plustek 8200i scanner under Linux. That application is
> called Negative Vibes and can be found here -
> https://github.com/cschalle/negative-vibes. I have also been working on
> my own driver for the scanner (and to try provide patches with the
> improvements I found for the newish upstream driver for the scanner). My
> scanning application is now very close to the official OEM application in
> terms of scan quality so I have also been trying to package it as a
> Flatpak. However as part of doing that I realized there is no portal for
> scanning yet, so I have been putting one together:
> https://github.com/cschalle/flatpak-scanner-portal
>
> In addition to my own scanning application I also created a patched
> version of GNOME Simple scan using it to have two test cases for the
> portal. The ported version is hosted here:
> https://github.com/cschalle/gnome-simple-scan-portal
>
> Anyway, the current version works well for me and I had Matthias Clasen,
> the upstream GTK+ maintainer and core GNOME devel review the portal
> definition for sanity and design and he thinks it is acceptable, but I
> didn't want to propose it to the flatpak portal upstream without giving you
> guys a chance to comment on the design.
>
> So please take a look at
> https://github.com/cschalle/flatpak-scanner-portal if you are interested
> and I be happy to hear any feedback you might have.
>
> Be aware that while Matthias did a full human review of the portal
> definition and code, the specification and patches are all done using
> Claude.
>
> Sincerely,
> Christian F.K. Schaller
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20261113/e98ecc3a/attachment.htm>


More information about the sane-devel mailing list