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

Full log

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

Received: (at submit) by bugs.x2go.org; 10 Jan 2015 10:00:36 +0000
From X2Go-ML-1@baur-itcs.de  Sat Jan 10 11:00:34 2015
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from mout.kundenserver.de (mout.kundenserver.de [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 5FE0D3BC4F
	for <submit@bugs.x2go.org>; Sat, 10 Jan 2015 11:00:34 +0100 (CET)
Received: from [] ([]) by mrelayeu.kundenserver.de
 (mreue104) with ESMTPSA (Nemesis) id 0MYvSd-1YEzVh05gp-00VjRM for
 <submit@bugs.x2go.org>; Sat, 10 Jan 2015 11:00:34 +0100
Message-ID: <54B0F88D.9090700@baur-itcs.de>
Date: Sat, 10 Jan 2015 11:01:49 +0100
From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: submit@bugs.x2go.org
Subject: X2GoClient should make use of an open-source PDF viewer and integrate
 that, for easier printing support
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Provags-ID:  V03:K0:AX6Un23vKTQ1ZfR8NM6ag+P9Y33UjasFz3S0DITol3Tb8XJmvLf
X-UI-Out-Filterresults: notjunk:1;
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
* x2goclient opens an SSH tunnel:
  * <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

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:
Sources are here:

- -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
Version: GnuPG v2.0.22 (MingW32)


Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Mon Jun 24 12:25:00 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.