<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><br></div></div></div></div><div class="gmail_quote">2017-08-11 5:29 GMT+02:00 Mihai Moldovan <span dir="ltr"><<a href="mailto:ionic@ionic.de" target="_blank">ionic@ionic.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: reassign -1 x2goserver 4.0.1.20<br>
<br>
First of all, x2goserver 4.0.1.20 actually is the correct stable release.<br>
4.1.0.0 are the current nightly releases.<br>
<br>
I personally don't care much about what version is tested, but knowing whether<br>
there's a difference in behavior between the stable and nightly versions is<br>
certainly helpful.<br></blockquote><div><br></div><div>Same issues with both versions.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
<br>
On 08/10/2017 12:24 PM, Bruno CAPELETO wrote:<br>
> Package: <x2goserver> Version: <4.0.1.20-0x2go1+git20170412.<wbr>1125+9.main.1><br>
><br>
> # uname -a Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1<br>
> (2017-06-18) x86_64 GNU/Linux<br>
><br>
><br>
><br>
> The below bugs are most probably related to each other, that's why I open<br>
> one case for all of them.<br>
><br>
> The issues are the following : I want to use the French software Laurux,<br>
> which is based on Gambas interpreter, via a x2go session running on a Debian<br>
> 9 server running LXDE (same issues seen on an Ubuntu server, x2goserver<br>
> version = 4.0.1.20-0~1125~ubuntu14.04.1)<wbr>..<br>
><br>
> As a prerequisite, the software is installed on the server and runs well on<br>
> a local session.<br>
><br>
> 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local environment<br>
> variables are not set properly and the software - which needs French<br>
> localization - crashes. That could be "solved" the following way :<br>
> /etc/x2go/Xsession :<br>
><br>
> ... LANG=fr LC_ALL=fr_FR.UTF-8 export LANG export LC_ALL ...<br>
><br>
> That seems to be a revival of older bugs, but it is definitely still here.<br>
<br>
</span>How exactly did you set the locale?<br>
<br>
The "Debian way" would be to run dpkg-reconfigure locales as root and select the<br>
desired locale(s) to generate and then select the default one.<br></blockquote><div><br></div><div>That is exactly the way  I set the locales.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
/etc/environment should not contain any locale settings.<br></blockquote><div><br></div><div>/etc/environmnent is empty</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
LANGUAGES and especially LC_ALL should normally not be set. LANGUAGES is a<br>
GNU-only list of fallback locales. LANG is the preferred way to set the locale,<br>
since it's being used if all of the LC_* env variables are empty.<br>
"dpkg-reconfigure locales" will do the right thing™.<br></blockquote><div><br></div><div>I confirm $LANGUAGES and $LC_ALL are not set on a local session.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
<br>
> 2. At the start of a new session, one gets a windows with an error message<br>
> "No session for pid ..." ; that bug has already been reported several times<br>
> in x2go bug tracking and marked as solved. Actually it is not on my brand new<br>
> system.<br>
<br>
</span>What session are you starting exactly? I cannot find the string "No session for<br>
pid" in x2goserver's source code. Not sure what to do with this.<br></blockquote><div><br></div><div>I found out it is a reported bug related to LXDE : cf <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864402">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864402</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
<br>
> 3. The single application mode does not work with some of the applications,<br>
> including that Laurux / Gambas. For example it works with /usr/bin/leafpad,<br>
> but /usr/bin/libreoffice makes the x2go session crash.<br>
<br>
</span>That's certainly possible. The most likely cause, as Uli explained, is that the<br>
command daemonizes itself right after launching it. This leads to the X2Go<br>
scripts assuming that the program exited and subsequently also terminating the<br>
session. We've seen such behavior every now and then and worked around it.<br>
<br>
However, it looks like x2goagent is crashing when you start libreoffice in your<br>
case. That shouldn't happen. My gut feeling is that this might be another GTK3<br>
incompatibility.<br>
<br>
I could try to reproduce this in a clean stretch VM.<br></blockquote><div><br></div><div>Perfectly reproducible in my case on 2 installations.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
<br>
> 4. The mouse double clic does not work in a x2go session, but only - within<br>
> the Gambas software (works well for example when launching an application)<br>
> and only - when the x2go client is running in a Windows environment (no<br>
> problem when client in a Linux environment)<br>
<br>
</span>That sounds like Gambas is doing something funny, though. As far as I was able<br>
to gather, Gambas seems to be using Qt5 as its drawing toolkit.<br>
<br>
The package qtbase5-examples should contain a binary at<br>
/usr/lib/x86_64-linux-gnu/qt5/<wbr>examples/widgets/widgets/<wbr>mousebuttons/mousebuttons<br>
which spits out received mouse events.<br>
<br>
Can you try that - especially with double clicking - and see what it outputs?<br></blockquote><div><br></div><div><div>$ /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/mousebuttons/mousebuttons</div><div>failed to get the current screen resources</div><div>QXcbConnection: XCB error: 172 (Unknown), sequence: 169, resource id: 175, major code: 149 (Unknown), minor code: 20</div><div>"Mouse Press: raw button=1  Qt=LeftButton\n heldbuttons LeftButton "</div><div>"Mouse Release: raw button=1  Qt=LeftButton\n heldbuttons NoButton"</div><div>"Mouse DoubleClick: raw button=1  Qt=LeftButton\n heldbuttonsLeftButton "</div><div>"Mouse Release: raw button=1  Qt=LeftButton\n heldbuttons NoButton"</div></div><div><br></div><div>Reminder : the double click works when for example I launch an application from the desktop shortcut.</div><div>It is only in this gambas software that it does not work, and only when using x2go Windows client (works perfectly well with x2go linux client).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
<br>
Mihai<br>
<br>
</font></span></blockquote></div><br></div></div>