X2Go Bug report logs - #917
Printer command with spaces does not work

version graph

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

Reported by: Mikhail Gonchar <mg@reji.ru>

Date: Fri, 7 Aug 2015 10:20:01 UTC

Severity: normal

Found in version 4.0.5.0

Full log


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

Received: (at submit) by bugs.x2go.org; 7 Aug 2015 10:15:43 +0000
From mg@reji.ru  Fri Aug  7 12:15:40 2015
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,SPF_HELO_PASS
	autolearn=ham version=3.3.2
Received: from trixie.reji.ru (trixie.reji.ru [84.22.98.211])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 3CE835DA86
	for <submit@bugs.x2go.org>; Fri,  7 Aug 2015 12:15:40 +0200 (CEST)
Received: from reji.ru (localhost [IPv6:::1])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by trixie.reji.ru (Postfix) with ESMTPSA id 2346B800F4
	for <submit@bugs.x2go.org>; Fri,  7 Aug 2015 12:15:40 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Fri, 07 Aug 2015 15:15:40 +0500
From: Mikhail Gonchar <mg@reji.ru>
To: submit@bugs.x2go.org
Subject: Printer command with spaces does not work
Message-ID: <5aecc3b3649530305fb36d04c710c3ba@trixie.reji.ru>
X-Sender: mg@reji.ru
User-Agent: Roundcube Webmail/1.1.1
Package: x2goclient
Version: 4.0.5.0

A custom printer command in x2goclient does not work when it contains 
spaces.

I reproduced this on Debian "jessie" and Windows XP:
1) Open x2goclient settings and set printer command to value with 
spaces. I set it to "/home/reji/evince and spaces" on Debian (this is a 
simlink to /usr/bin/evince).

2) Print something in remote session to virtual X2Go printer.

As result error message pop ups on the client:
"Failed to execute command:
/home/reji/evince and spaces 
/home/reji/.x2go/S-redge-52-1438889300_stDLXDE_dp32/spool/redge-52-1438889300_stDLXDE_dp32_33-redge-cupsjob7726ykoKRCRrXh30G41C.pdf"

Printing works if I set a command to "/usr/bin/evince" or "evince".


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Mar 29 10:21:39 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.