From unknown Sun Apr 05 14:22:03 2026
MIME-Version: 1.0
X-Mailer: MIME-tools 5.502 (Entity 5.502)
X-Loop: owner@bugs.x2go.org
From: owner@bugs.x2go.org (X2Go Bug Tracking System)
Subject: Bug#543 closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
 (X2Go issue (in src:x2goserver) has been marked as closed)
Message-ID: <handler.543.c.141168500820378.notifdone@bugs.x2go.org>
References: <20140925224216.14D573D459@ymir.das-netzwerkteam.de>
X-X2go-PR-Keywords: pending patch
X-X2go-PR-Message: they-closed 543
X-X2go-PR-Package: x2godesktopsharing
Date: Thu, 25 Sep 2014 22:45:38 +0000
Content-Type: multipart/mixed; boundary="----------=_1411685138-21663-0"

This is a multi-part message in MIME format...

------------=_1411685138-21663-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

This is an automatic notification regarding your Bug report
which was filed against the x2godesktopsharing package:

#543: x2golistdesktops locks up if xwininfo does

It has been closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mike Gabriel <mike.gab=
riel@das-netzwerkteam.de> by
replying to this email.


--=20
X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems

------------=_1411685138-21663-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at control) by bugs.x2go.org; 25 Sep 2014 22:43:28 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RELAYS
	autolearn=ham version=3.3.2
Received: by ymir.das-netzwerkteam.de (Postfix, from userid 1005)
	id 14D573D459; Fri, 26 Sep 2014 00:42:15 +0200 (CEST)
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 543-submitter@bugs.x2go.org
Cc: control@bugs.x2go.org, 543@bugs.x2go.org
Subject: X2Go issue (in src:x2goserver) has been marked as closed
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Message-Id: <20140925224216.14D573D459@ymir.das-netzwerkteam.de>
Date: Fri, 26 Sep 2014 00:42:15 +0200 (CEST)

close #543
thanks

Hello,

we are very hopeful that X2Go issue #543 reported by you
has been resolved in the new release (4.0.1.16) of the
X2Go source project »src:x2goserver«.

You can view the complete changelog entry of src:x2goserver (4.0.1.16)
below, and you can use the following link to view all the code changes
between this and the last release of src:x2goserver.

    http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=c43b862f2ae0e8980fb7ab5e519d692b07da5a45;hp=98c4f84d83d701823b7887f79d0d9f5ce8233bd4

If you feel that the issue has not been resolved satisfyingly, feel
free to reopen this bug report or submit a follow-up report with
further observations described based on the new released version
of src:x2goserver.

Thanks a lot for contributing to X2Go!!!

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
X2Go Component: src:x2goserver
Version: 4.0.1.16-0x2go1
Status: RELEASE
Date: Fri, 26 Sep 2014 00:36:32 +0200
Fixes: 122 302 397 406 407 458 468 495 506 511 520 523 524 543 547 558 569 572 573 574 599 605 606 617 619
Changes: 
 x2goserver (4.0.1.16-0x2go1) RELEASED; urgency=low
 .
   [ Mike DePaulo ]
   * New upstream release (4.0.1.16):
     - Make X2Go Server aware of the Openbox desktop environment
       (Command: OPENBOX) (Fixes: #605)
     - Make X2Go Server aware of the IceWM desktop environment
       (Command: ICEWM) (Fixes: #606)
     - Support GNOME Flashback session (GNOME 3.8+) on distro releases such as
       Ubuntu 13.10+ and debian Jessie
       (NOTE: For most users, GNOME Flashback currently will not work.
        This requires that gnome-flashback.session actually be installed. Not
        every Linux distro has it available.
        It also requires that the gnome-session binary not require
        hardware 3D acceleration for said session. Currently, upstream GNOME
        and GNOME 3.8+ in all Linux distros do require this, only 3rd party
        builds do not. See X2Go bug #599 for example.)
       (Thanks Eugene San (eugenesan@gmail.com))
     - Fix launching GNOME 3 Fallback session (GNOME 3.4 & 3.6) on distros other
       than Ubuntu and Debian (Fixes: #599)
     - Fix support for Cinnamon 1.4 (Linux Mint 13) (Fixes: #569)
     - Fix the logic for launching Cinnamon 2.0 and 2.2 (Linux Mint 17).
       (Fixes: #572)
       NOTE: Fixing this bug in x2goserver is not sufficient to make Cinnamon 2.0
       & 2.2 to work properly with X2Go. Bug #150 in nx-libs is still a problem.
       Fixing this bug enables Cinnamon 2.0 and 2.2 to launch to their
       "fallback mode", which has many bugs and missing features when compared to
       "software rendering" mode (cinnamon2d), but is still better than nothing.
   * debian/rules:
     + Improve dh_auto_clean override.
 .
   [ Mike Gabriel ]
   * New upstream version (4.0.1.16):
     - Let x2goversion exit with an error if the X2Go component cannot be
       found.
     - Detect terminated sessions from NX log file. Also interpret a session as
       terminated if terminating just has started.
     - Detect started/starting/resumed/resuming sessions by explicitly scanning
       the NX session log file for those keywords.
     - Interpret NX sessions marked as "aborting session" as (not yet) terminated
       sessions.
     - Provide config option for server-side/global clipboard behaviour in
       x2goagent.options. (Fixes: #506).
     - Be aware of poly-instantiated /tmp directories bind-mounted under
       /tmp-inst. (Fixes: #406).
     - On suspend: Call x2goumount-session before sending SIGHUP to x2goagent.
     - Refuse client communcation if server-side hostname is not set up
       correctly (Fixes: #468).
     - Fix string comparison in x2goumount-session.
     - Fix problems with unmounting shared folders on session suspension/
       termination. Remove extra parentheses from the fusermount execution
       call. (Fixes: #407).
     - Use type -p instead of which in x2goumount-session. Suppress output
       to stdout properly.
     - Use if--then--else--fi during x2goagent resuming in x2goresume-session
       script.
     - More reliably sync the NX session state with the status information in
       the X2Go session DB.
     - x2golistdesktops: Also detect sharable desktop sessions behind abstract
       kernel namespace sockets.
     - Add logcheck rules for X2Go Server. Thanks to Frank Werner for sending
       them in.
     - Correctly use diversions from stderr to stdout in shell commands.
       (Fixes: #520).
     - Don't die if no session state file is found, as it will break X2Go
       completely after upgrading from versions << 4.0.1.16 if sessions
       are still running/suspended during package upgrade.
     - Provide support for client-side choice of clipboard security. (Fixes:
       #524).
     - Use more quotes in x2goruncommand.
     - Detect the exit of rootless applications that forked to background on
       application execution. (Fixes: #122).
     - Make x2goruncommand more robust.
     - Don't fail Xsession startup if any of the profile scripts returns
       with an error.
     - Silently timeout in x2golistdesktops if calls to x2golistsessions and/or
       xwininfo don't produce output within one second. (Fixes: #543).
     - Allow email addresses as login usernames. (Fixes: #573).
     - Abort session startup if env var $USER or $SSH_CLIENT are not set.
       (Fixes: #558).
     - Allow length of username up to 48 characters (was: 32 characters). (Fixes:
       #574).
     - Abort session if env var $HOME is not set or if $HOME contains non-ASCII
       characters. (Fixes: #397).
     - Export XAUTHORITY env var in x2goruncommand to enable privilege upgrade
       for applications started via pkexec. (Fixes: #458).
     - x2gocleansessions: Don't print to stderr if the session state file cannot
       be found. This can happen during session startups. Report to system log
       instead.
     - Don't use Perl package File::ReadBackwards anymore.
     - Fix x2gormforward for 4.0.1.x release series (the X2Go::Log Perl module
       only exists in X2Go Server >= 4.1.0.0, the 4.0.1.x release series has to
       use x2gologlevel.pm in `x2gopath lib`. (Fixes: #617).
     - Pick x2gogetagentstate from 4.1.0.0 release series and adapt to usage
       with X2Go Server 4.0.1.x. (Fixes: #619).
   * debian/control, x2goserver.spec:
     + Update versioned D: x2goagent (>= 3.5.0.25). This assures that X2Go
       works with poly-instantiated /tmp directories.
     + Make sure x2gogetagentstate gets packaged in bin:package x2goserver.
     + Bump Standards: to 3.9.5. No changes needed.
     + Mark x2goserver-pyhoca bin:package as deprecated.
     + Drop D (x2goserver): libfile-readbackwards-perl.
   * x2goserver.spec:
     + Install {libdir}/x2go/x2gormforward into bin:package x2goserver.
     + Drop R (x2goserver): perl(File::ReadBackwards).
 .
   [ Oleksandr Shneyder ]
   * New upstream version (4.0.1.16):
     - x2gostartagent, x2golistsession, x2gosuspend-session and
       x2goresume-session getting agent state from ~/.x2go/C-$SID/state. This
       should help to avoid session damage. Remove nxcleanup. (Fixes: #302,
       #511).
     - Move session file to /tmp/.x2go-$USER. (Fixes: #523).
     - Fix x2gostartagent failures if kbd is not "auto". Remove comma at end of
       options file.
     - Set default value for clipboard to "both" in x2gostartagent and
       x2goresume-session.
     - Clean user SSHD process if connection between server and client lost.
       This should fix error "Global request tcpip-forward failed". (Fixes:
       #495, #547).
 .
   [ Orion Paplowski ]
   * x2goserver.spec:
     + Sync Fedora .spec file with our upstream-provided x2goserver.spec.


------------=_1411685138-21663-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.x2go.org; 9 Jul 2014 21:57:25 +0000
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,HTML_MESSAGE
	autolearn=ham version=3.3.2
Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id C88F65DB24
	for <submit@bugs.x2go.org>; Wed,  9 Jul 2014 23:57:21 +0200 (CEST)
Received: by mail-vc0-f170.google.com with SMTP id hy10so8781315vcb.29
        for <submit@bugs.x2go.org>; Wed, 09 Jul 2014 14:57:19 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:content-type:subject:message-id:date:to
         :mime-version;
        bh=CM1H/QdzwcUufuX1NKoMpVTRxgTLuMJUDOxmuRSr3RY=;
        b=byRf5Xk95MYrgKSv9BDaSKuQkSSpdDmuvYhYybUo9RKT8hurMXCS80jCG+Jhn3+c/d
         dqCZfmQtE2XJeCaiKfaLNrOwVvD16ps5+Q3STVMawdqrp4inB/BALK5WLQH4stLomAfb
         vb0ItYDJbsHkcpyY/03LIkBWqeh/Nd5ULPM/GCgFnEkXA/ShNylq3TaOKkd0uNSF4OEl
         VOBJuPkr3SPAT6I/aF6x9UpytIj/jdrLR3zcW7wud3fIG8soTL33qEjJUpg5quc6ANk5
         6aypsDfOu9TBja3MxiZSAmqhhWi4vxhntJoJYEoaD/bzavCr3oVhfFouS8GLFILwHF1n
         0zUA==
X-Gm-Message-State: ALoCoQnsvHoGPqMWwLSkeiZfeJ+G7u7XJ0vSmCVNjSgku6QcFv9ImY0BlMfVegN4CGUerOOzQb9u
X-Received: by 10.52.157.164 with SMTP id wn4mr397250vdb.81.1404943039657;
        Wed, 09 Jul 2014 14:57:19 -0700 (PDT)
Received: from [10.59.27.114] (97-64-141-154.client.mchsi.com. [97.64.141.154])
        by mx.google.com with ESMTPSA id p55sm76621896yhh.34.2014.07.09.14.57.18
        for <submit@bugs.x2go.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 09 Jul 2014 14:57:18 -0700 (PDT)
From: "Gregory R. Warnes" <greg@warnes.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_F905D346-9CCF-4E4B-8DE8-A0CDAB407632"
Subject: x2golistdesktops locks up if xwininfo does
Message-Id: <DF03EDF1-51CB-4E07-B316-4411BC0D97CB@warnes.net>
Date: Wed, 9 Jul 2014 17:57:09 -0400
To: submit@bugs.x2go.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)


--Apple-Mail=_F905D346-9CCF-4E4B-8DE8-A0CDAB407632
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Package:  x2godesktopsharing
Version: 3.1.1.1-0~131~ubuntu12


Hi,  my server had a =91weird=92 file in /tmp/.X11-unix/ for which =
xwininfo would never return, locking up x2golistdesktops.

The solution is to provide a timeout for the shell call to xwininfo.  =
This can be accomplished either using the shell command =91timeout=92 or =
the Perl IPC::Run module (as described in the first response to =
http://stackoverflow.com/questions/16918005/time-out-when-using-system-cmd=
-in-perl).

For my purpose, I=92ve used the shell timeout command. Patch below.

-Greg


--- /usr/bin/x2golistdesktops	2014-04-03 10:14:22.000000000 -0500
+++ x2golistdesktops	2014-07-09 16:43:54.000000000 -0500
@@ -43,7 +43,7 @@
 	$serv=3Dhostname;
 }

-my $rsess=3D`x2golistsessions x2goserver |grep _stR`;
+my $rsess=3D`timeout 1s x2golistsessions x2goserver |grep _stR`;
 my @rsess=3Dsplit("\n","$rsess");
 my @rdisplays;
 for (my $i=3D0;$i<@rsess;$i++)
@@ -67,7 +67,7 @@
 	$checkdisp=3D"${checkdisp}I";
 	if (!( $rdisp =3D~ m/$checkdisp/ ))
 	{
-		my $inf=3D`xwininfo -root -display $display 2> =
/dev/null`;
+		my $inf=3D`timeout 1s xwininfo -root -display $display =
2> /dev/null`;
 		if ( $inf=3D~ m/geometry/)
 		{
 			print "$uname\@$display\n";
@@ -88,4 +88,4 @@
 }

 # closing syslog
-closelog;
\ No newline at end of file
+closelog;
w



--Apple-Mail=_F905D346-9CCF-4E4B-8DE8-A0CDAB407632
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><div>Package: &nbsp;<span style=3D"background-color: =
rgb(255, 255, 255); color: rgb(102, 102, 102); font-family: Consolas, =
'Andale Mono WT', 'Andale Mono', 'Bitstream Vera Sans Mono', 'Nimbus =
Mono L', Monaco, 'Courier New', monospace; line-height: =
19.600000381469727px;">x2godesktopsharing</span></div><div>Version:&nbsp;3=
.1.1.1-0~131~ubuntu12</div><div><br></div><div><br></div>Hi, &nbsp;my =
server had a =91weird=92 file in&nbsp;/tmp/.X11-unix/ for which xwininfo =
would never return, locking up x2golistdesktops.<div><br></div><div>The =
solution is to provide a timeout for the shell call to xwininfo. =
&nbsp;This can be accomplished either using the shell command =91timeout=92=
 or the Perl&nbsp;<span style=3D"background-color: rgb(238, 238, =
238);">IPC</span><span class=3D"sh_symbol">::</span><span =
style=3D"background-color: rgb(238, 238, 238);">Run</span>&nbsp;module =
(as described in the first response to&nbsp;<a =
href=3D"http://stackoverflow.com/questions/16918005/time-out-when-using-sy=
stem-cmd-in-perl">http://stackoverflow.com/questions/16918005/time-out-whe=
n-using-system-cmd-in-perl</a>).</div><div><br></div><div>For my =
purpose, I=92ve used the shell timeout command. Patch =
below.</div><div><br></div><div>-Greg</div><div><br></div><div><br></div><=
div><div>--- /usr/bin/x2golistdesktops<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>2014-04-03 10:14:22.000000000 =
-0500</div><div>+++ x2golistdesktops<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>2014-07-09 16:43:54.000000000 =
-0500</div><div>@@ -43,7 +43,7 @@</div><div>&nbsp;<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>$serv=3Dhostname;</div><div>&nbsp;}</div><div><br></div><div>-my =
$rsess=3D`x2golistsessions x2goserver |grep _stR`;</div><div>+my =
$rsess=3D`timeout 1s x2golistsessions x2goserver |grep =
_stR`;</div><div>&nbsp;my =
@rsess=3Dsplit("\n","$rsess");</div><div>&nbsp;my =
@rdisplays;</div><div>&nbsp;for (my $i=3D0;$i&lt;@rsess;$i++)</div><div>@@=
 -67,7 +67,7 @@</div><div>&nbsp;<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	=
</span>$checkdisp=3D"${checkdisp}I";</div><div>&nbsp;<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>if (!( =
$rdisp =3D~ m/$checkdisp/ ))</div><div>&nbsp;<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>{</div><div>-<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">		</span>my $inf=3D`xwininfo -root =
-display $display 2&gt; /dev/null`;</div><div>+<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">		=
</span>my $inf=3D`timeout 1s xwininfo -root -display $display 2&gt; =
/dev/null`;</div><div>&nbsp;<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">		</span>if ( $inf=3D~ =
m/geometry/)</div><div>&nbsp;<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">		</span>{</div><div>&nbsp;<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">			=
</span>print "$uname\@$display\n";</div><div>@@ -88,4 +88,4 =
@@</div><div>&nbsp;}</div><div><br></div><div>&nbsp;# closing =
syslog</div><div>-closelog;</div><div>\ No newline at end of =
file</div><div>+closelog;</div><div>w</div></div><div><br></div><div><br><=
/div></body></html>=

--Apple-Mail=_F905D346-9CCF-4E4B-8DE8-A0CDAB407632--

------------=_1411685138-21663-0--
