Subject: Bug#724: Scanning does not work over romote-desktop session with sane

From: Andreas Glaeser <[email-masked]>
Date: Thu, 8 Jan 2015 09:04:48 +0100

Package: x2goserver-xsession 
Version: 4.0.1.18-0x2go1+git20141006.949+wheezy.main.1

simple-scan does not work over x2go-remote-desktop session.
See there: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761398

It is most probably a problem with user-rights and and with the sane-backend.
When trying to scan, it looks like this on the terminal:

andreas@md-ho:~$ simple-scan
p11-kit: invalid config filename, will be ignored in the
future: /etc/pkcs11/modules/gnome-keyring-module

** (simple-scan:23088): WARNING **: scanner.vala:801: Unable to get open device: Access
to resource has been denied

xsane says: 'Failed to open device 'pixma:04A9172B': Access to resource has been dnied.

But scanning works, when there is a local session running on the machine (i.e. the
remote-desktop server) from the same user.

Normally this is no problem at all for thin-clients, because they do not have a scanner
connected to the desktop-server. But in my case it is a problem. I also do acknowledge
that not many people do have this problem, so it is severity 3 only.

Please let me know, if I should rather report this against the sane-backend.

There is the original report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774830

> Package: x2goserver-xsession             
> New: yes
> State: installed
> Automatically installed: no
> Version: 4.0.1.18-0x2go1+git20141006.949+wheezy.main.1
> Priority: optional
> Section: x11
> Maintainer: X2Go Developers <[email-masked]>
> Architecture: all
> Uncompressed Size: 80.9 k
> Depends: x2goserver (>= 4.0.1.18-0x2go1+git20141006.949+wheezy.main.1), x2goserver (<
>          4.0.1.18-0x2go1+git20141006.949+wheezy.main.1.1~), x11-common
> Description: X2Go server daemon scripts (Xsession runner)
>  X2Go is a server based computing environment with 
>  * session resuming 
>  * low bandwidth support 
>  * session brokerage support 
>  * client-side mass storage mounting support 
>  * client-side printing support 
>  * audio support 
>  * authentication by smartcard and USB stick 
>    
>  This X2Go server add-on enables Xsession script handling when starting desktop sessions
>  with X2Go. 
>  
>  Amongst others the parsing of Xsession scripts will enable desktop-profiles, ssh-agent
>  startups, gpgagent startups and many more Xsession related features on X2Go session
>  login automagically.
> Homepage: http://code.x2go.org/releases/source/x2goserver