X2Go Bug report logs - #738
X2GoClient should make use of an open-source PDF viewer and integrate that, for easier printing support

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: Stefan Baur <X2Go-ML-1@baur-itcs.de>

Date: Sat, 10 Jan 2015 10:05:01 UTC

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#738; Package x2goclient. (Sat, 10 Jan 2015 10:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Baur <X2Go-ML-1@baur-itcs.de>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sat, 10 Jan 2015 10:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.x2go.org (full text, mbox):

From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
To: submit@bugs.x2go.org
Subject: X2GoClient should make use of an open-source PDF viewer and integrate that, for easier printing support
Date: Sat, 10 Jan 2015 11:01:49 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

package: x2goclient
severity: wishlist

The current way of client-side printing is rather error-prone (see
various complaints on the mailing lists lately), also, it requires the
user to be in the fuse group on the server.  Which opens the can of
worms that the user can now also use the built-in file sharing, which
may not be desirable in all circumstances.

Therefore, I would like to suggest the following as new method of
printing:
* x2goclient opens an SSH tunnel:
  -R<somenumber>:127.0.0.1:<someothernumber>
  * <somenumber> should start at a number above 1024, obviously, and a
    mechanism must be in place that determines a free port number, then
    uses that.
  * <someothernumber> should also be a number above 1024, starting at a
    fixed base number and incrementing with each user/session (similar
    to X2Go session numbers).
* on the server, CUPS-X2GO creates a PDF (optionally, compressed using
  gzip, bzip2 or xz - information about the compression method used
  could be conveyed in a PJL header comment field) and streams it to
  socket://127.0.0.1:<someothernumber>

I'm assuming the following two steps are a non-issue for Mac OS X and
Linux, as CUPS is used natively there, and all we have to do there is
connect the two CUPSes via a simple portforwarding.


* On Windows, x2goclient pipes the incoming data either directly as a
  stream, or via a temporary file, to a PDF viewer, which (in the
  simplest case) is set to automatically print to the default printer
  * optionally, we could pop up the print dialog, though this will add
    more complexity
* for ease of use, we should either ship SumatraPDF (a free PDF
  viewer that can be automated via command line options) with
  x2goclient, just as we currently do with pulseaudio and vcxsrv, or
  integrate the relevant parts of SumatraPDF directly into x2goclient,
  if based on the same programming language, and being licensed unter
  terms compatible with ours.


1) This eliminates the need for having users in the FUSE group to
   merely print a document,
2) also, if we can get SumatraPDF to accept the bitstream, it would
   even eliminate the need for a temporary file on the client,
3) lastly, by shipping a PDF viewer/printer, we make it easier for the
   user by providing a sane default (like we do with vcxsrv - users
   still can use a different X server if they choose to, but they don't
   have to download one manually first and worry to get the
   configuration right).

Portable version of SumatraPDF is here:
https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-3.0.zip
Sources are here:
https://github.com/sumatrapdfreader/sumatrapdf

- -Stefan

- -- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUsPiNAAoJEG7d9BjNvlEZ4zgH+wRUNRHBCyzTWhk8F68/2Ahp
XMNKbmnvdsTIaUz5xHwgLPvxze3FaagY5SxJt5y3Td7EujdfZ0jbaVezZHMYUHdd
bKjKgfoJDu7BWk/39440eyOnv6f2yIbhnXYfrV+un2n8PC5IykNZVCm/MopBEvVb
IcIh8xcMbVHmSpDcDNRGcE0hBafPE7+0G74Mtsc9O8ZNoi7PcIO1g9EWHUXATLxc
f954dr2n1RTDddQ5L5c/UTlZ8r9x2Rw8mXkRhVcu3XVNoyFmFb9l3R4kRoF1pp5M
45fztzY3HZH4KmhiyEk8fhlDQbH9kYx0FJ0NdJbb4Kk5Soc+usmItcwBZ3tPLU8=
=noNS
-----END PGP SIGNATURE-----


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#738; Package x2goclient. (Mon, 12 Jan 2015 11:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Baur <X2Go-ML-1@baur-itcs.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Mon, 12 Jan 2015 11:05:02 GMT) Full text and rfc822 format available.

Message #10 received at 738@bugs.x2go.org (full text, mbox):

From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
To: 738@bugs.x2go.org
Subject: A sub-bug has been created for the inclusion of the PDF viewer component.
Date: Mon, 12 Jan 2015 11:57:07 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

for the "include a PDF viewer" part of this bug, I just created
http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=740 as a sub-bug, so
this part can get fixed, resolved and closed faster.

- -Stefan
- -- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUs6iCAAoJEG7d9BjNvlEZkNcH/jmRwqNA+oMmCjjsxrj3jZ/J
BwANGmbI/2zGNHo1AwmviQlPkQRsDMhYaOg+DVInJY8IBil3wQA2QWAN2S7Vr9Bg
BBE1Y14L/uodGp1hGT4t95ywb1O06YK6lQ470Bgc7Fgli1hRVhD9hc+B4XwT61wc
GovoIjCe4Y6NWlOFbh86evxjbLqLw+VIFFbKHkU5J9rggZPb+aNzMHake4JU4OV3
W92S+OHcRl6Warvvxr5Q1jH3dDZJ4u73/YYZox56nhhXFRO2VRSXHsNlApgcsTfE
TC3TCrJdxB/VCWZhcRFc32jMIQojnHOvqUgSuOOT4AOyxcpqfNWGmklIVs5m8OE=
=P2nf
-----END PGP SIGNATURE-----


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Dec 14 05:23:57 2018; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.