Bug 450609 - Network scanner not detected
Summary: Network scanner not detected
Status: RESOLVED FIXED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-20 11:19 UTC by Antoine Gatineau
Modified: 2022-03-04 13:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot skanlist (22.82 KB, image/png)
2022-02-22 08:35 UTC, Antoine Gatineau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Gatineau 2022-02-20 11:19:58 UTC
SUMMARY
I have a HP ENVY 5030 network scanner that has over the air scanning capabilities (works with gscan2pdf)
When skanpage scans for devices, it doesn't appear in the list, only the webcam.

Installed via flatpak kedapps repo (nightly)

STEPS TO REPRODUCE
1. install skanpage
2. refresh device list
3. 

OBSERVED RESULT
The scanner is not in the list

EXPECTED RESULT
The scanner should be listed and selectable

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 35/Plasma 5.24.1
(available in About System)
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Packaging: flatpak

ADDITIONAL INFORMATION
There is no manual setting to specify a scanner from IP/hostname which would be nice to have in case a firewall/router prevents from automatically discovering the scanner.
Comment 1 Alexander Stippich 2022-02-21 20:36:18 UTC
That it somewhat weird, as gscan2pdf uses the same underlying library as Skanpage does. Does Gnome's simple-scan/Document Scanner work?
Comment 2 Antoine Gatineau 2022-02-22 08:35:32 UTC
Created attachment 147040 [details]
screenshot skanlist
Comment 3 Antoine Gatineau 2022-02-22 08:38:51 UTC
skanlite installed from rpm detected the network scanner.
Installed Packages
Name         : skanlite
Version      : 2.2.0
Release      : 4.fc35
Architecture : x86_64
Size         : 2.9 M
Source       : skanlite-2.2.0-4.fc35.src.rpm
Repository   : @System
From repo    : fedora
Summary      : Lightweight scanning program
URL          : https://www.kde.org/applications/graphics/skanlite/
License      : GPLv2 or GPLv3
Description  : Skanlite is a light-weight scanning application based on libksane.

gscan2pdf is installed from pdf . Document scanner works too, (installed from package)

Could it be because of the flatpak packaging and permissions?
Comment 4 Antoine Gatineau 2022-02-22 09:43:46 UTC
The flatpak doesn't seem to allow network by default.
But even by allowing the network with flatseal it still doesn't work. 
I'll build from source to be sure it's a packaging issue
Comment 5 Antoine Gatineau 2022-02-22 09:53:07 UTC
Well building from source fixes it....
It sees the network scanner and after a test run it works really well...
Comment 6 Alexander Stippich 2022-02-26 10:25:05 UTC
I didn't know that there is a flatpak for Skanpage. Can you point me to it?
Comment 7 Antoine Gatineau 2022-02-26 12:01:42 UTC
(In reply to Alexander Stippich from comment #6)
> I didn't know that there is a flatpak for Skanpage. Can you point me to it?

I have enabled distribute.kde.org following https://community.kde.org/Guidelines_and_HOWTOs/Flatpak
I know those are the nightlies but skanpage is not available on flathub.

The flatpak packaging is defined here: https://invent.kde.org/packaging/flatpak-kde-applications/-/blob/master/org.kde.skanpage.json
Comment 8 Antoine Gatineau 2022-02-27 14:32:27 UTC
OK, so obviously the flatpak nightly package is not fully working and fedora kde is not yet providing this application.
Therefore, I have build the package for fedora kde 35+ here: https://copr.fedorainfracloud.org/coprs/monkeybizness/kdeapps/

This will be a temporary solution for people using fedora 35+ until it is officially packaged.

As for the original issue about the flatpak package, I cannot really help.
@alexander, what should be the best course of action? I think a flatpak package would be nice on flathub but not the nightly of course.
Comment 9 Alexander Stippich 2022-02-27 17:58:56 UTC
I think it's because the flatpak is built without avahi support, I already made a comment about that at https://invent.kde.org/packaging/flatpak-kde-applications/-/commit/b7f8b9f1881e7fffaf76822340398de14aee2935
Comment 10 Alexander Stippich 2022-03-01 11:28:34 UTC
Should be fixed by https://invent.kde.org/packaging/flatpak-kde-applications/-/merge_requests/76
Comment 11 Antoine Gatineau 2022-03-01 18:34:57 UTC
Thank you for the follow up.
I just tried and it doesn't work with the flatpak version. Maybe it hasn't been built with this fix yet. I'll check again tomorrow.
Comment 12 Antoine Gatineau 2022-03-04 13:02:12 UTC
Still doesn't work for me in the flatpak version.
Also, the flatpak default configuration should allow accessing the network.

Not a big deal now as I have a rpm version that works.