From unknown Fri Mar 29 01:24:29 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#1200: [X2Go-Dev] Environment variables not set Reply-To: Mihai Moldovan , 1200@bugs.x2go.org Resent-From: Mihai Moldovan Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Fri, 11 Aug 2017 03:40:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 1200 X-X2Go-PR-Package: X-X2Go-PR-Keywords: Received: via spool by 1200-submit@bugs.x2go.org id=B1200.15024227175264 (code B ref 1200); Fri, 11 Aug 2017 03:40:02 +0000 Received: (at 1200) by bugs.x2go.org; 11 Aug 2017 03:38:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RDNS_NONE,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.1 Received: from localhost (localhost [127.0.0.1]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id C8A2C5DACC for <1200@bugs.x2go.org>; Fri, 11 Aug 2017 05:38:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de Received: from ymir.das-netzwerkteam.de ([127.0.0.1]) by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 460dqLhjc3VG for <1200@bugs.x2go.org>; Fri, 11 Aug 2017 05:38:19 +0200 (CEST) X-Greylist: delayed 539 seconds by postgrey-1.35 at ymir.das-netzwerkteam.de; Fri, 11 Aug 2017 05:38:18 CEST Received: from Root24.de (unknown [IPv6:2001:41d0:a:588b:1::2]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id EC0115DA2B for <1200@bugs.x2go.org>; Fri, 11 Aug 2017 05:38:18 +0200 (CEST) Received: from [10.20.16.30] (178.162.222.163.adsl.inet-telecom.org [178.162.222.163]) by mail.ionic.de (Postfix) with ESMTPSA id BD7C14F0065B; Fri, 11 Aug 2017 05:29:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ionic.de; s=default; t=1502422157; bh=6cZgbJCuQs2AwXaS2NHq3jM0SjdBN+5xEyEpo4bcHKw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Nk8zCjSZ+RVcSizQMEFrL9NhWkbv0KU6gqV9mp1VDIC/VwppfTOfWFMLZtcEM8h0b c1gIeflmL4QFMFZLFrd23lg1B8deQesJ8WvRxNutjzMCi43sd0PpGNyEHZCYL2DUJH +7fECkbbvhjlrdIOr3zG3hF0VtWUI0LrauEGuobM= To: Bruno CAPELETO , 1200@bugs.x2go.org References: From: Mihai Moldovan Message-ID: <5e2e5f4b-b445-09d5-1834-ad53f845a03e@ionic.de> Date: Fri, 11 Aug 2017 05:29:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J4afxqEXmb9rWpV6m3HgrfeKBvIlkkwGT" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --J4afxqEXmb9rWpV6m3HgrfeKBvIlkkwGT Content-Type: multipart/mixed; boundary="dH75c2NDlX4nRumNEHbp9v4MFjhRtGHB5"; protected-headers="v1" From: Mihai Moldovan To: Bruno CAPELETO , 1200@bugs.x2go.org Message-ID: <5e2e5f4b-b445-09d5-1834-ad53f845a03e@ionic.de> Subject: Re: [X2Go-Dev] Environment variables not set References: In-Reply-To: --dH75c2NDlX4nRumNEHbp9v4MFjhRtGHB5 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Control: reassign -1 x2goserver 4.0.1.20 First of all, x2goserver 4.0.1.20 actually is the correct stable release.= 4.1.0.0 are the current nightly releases. I personally don't care much about what version is tested, but knowing wh= ether there's a difference in behavior between the stable and nightly versions = is certainly helpful. On 08/10/2017 12:24 PM, Bruno CAPELETO wrote: > Package: Version: <4.0.1.20-0x2go1+git20170412.1125+9.main= =2E1> >=20 > # uname -a Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 > (2017-06-18) x86_64 GNU/Linux >=20 >=20 >=20 > The below bugs are most probably related to each other, that's why I op= en > one case for all of them. >=20 > The issues are the following : I want to use the French software Laurux= , > which is based on Gambas interpreter, via a x2go session running on a D= ebian > 9 server running LXDE (same issues seen on an Ubuntu server, x2goserver= > version =3D 4.0.1.20-0~1125~ubuntu14.04.1).. >=20 > As a prerequisite, the software is installed on the server and runs wel= l on > a local session. >=20 > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local environm= ent=20 > variables are not set properly and the software - which needs French=20 > localization - crashes. That could be "solved" the following way :=20 > /etc/x2go/Xsession : >=20 > ... LANG=3Dfr LC_ALL=3Dfr_FR.UTF-8 export LANG export LC_ALL ... >=20 > That seems to be a revival of older bugs, but it is definitely still he= re. How exactly did you set the locale? The "Debian way" would be to run dpkg-reconfigure locales as root and sel= ect the desired locale(s) to generate and then select the default one. /etc/environment should not contain any locale settings. LANGUAGES and especially LC_ALL should normally not be set. LANGUAGES is = a GNU-only list of fallback locales. LANG is the preferred way to set the l= ocale, since it's being used if all of the LC_* env variables are empty. "dpkg-reconfigure locales" will do the right thing=E2=84=A2. > 2. At the start of a new session, one gets a windows with an error mess= age > "No session for pid ..." ; that bug has already been reported several t= imes > in x2go bug tracking and marked as solved. Actually it is not on my bra= nd new > system. What session are you starting exactly? I cannot find the string "No sessi= on for pid" in x2goserver's source code. Not sure what to do with this. > 3. The single application mode does not work with some of the applicati= ons,=20 > including that Laurux / Gambas. For example it works with /usr/bin/leaf= pad, > but /usr/bin/libreoffice makes the x2go session crash. That's certainly possible. The most likely cause, as Uli explained, is th= at the command daemonizes itself right after launching it. This leads to the X2G= o scripts assuming that the program exited and subsequently also terminatin= g the session. We've seen such behavior every now and then and worked around it= =2E However, it looks like x2goagent is crashing when you start libreoffice i= n your case. That shouldn't happen. My gut feeling is that this might be another= GTK3 incompatibility. I could try to reproduce this in a clean stretch VM. > 4. The mouse double clic does not work in a x2go session, but only - wi= thin > the Gambas software (works well for example when launching an applicati= on) > and only - when the x2go client is running in a Windows environment (no= > problem when client in a Linux environment) That sounds like Gambas is doing something funny, though. As far as I was= able to gather, Gambas seems to be using Qt5 as its drawing toolkit. The package qtbase5-examples should contain a binary at /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/mousebuttons/mouse= buttons which spits out received mouse events. Can you try that - especially with double clicking - and see what it outp= uts? Mihai --dH75c2NDlX4nRumNEHbp9v4MFjhRtGHB5-- --J4afxqEXmb9rWpV6m3HgrfeKBvIlkkwGT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCgAdFiEEbhHQj3UzgcdE8cg8H9Yu2W4lOocFAlmNJIkACgkQH9Yu2W4l Ooc+DRAAp2bSJBFGzp1lF0yzrAzqzBxfHr94ZrJuW5OMgkNdutiAL1xUzjRne20I obdmRYodn+xeENNlBlHYjU4IgWLSD66EdVz6uxtg2/t3JgVEXgMzffznpkgsPWmQ XuCUsWIYlSttd5IP+Cm+gk87YVl/KX/0DWViKTpVUrIpaA/3FQkVJl0VOs4ivy/w tN1C+p85YH5IWtS4SN0q/8rGOyzO37/czBVr4KN35FEZZ9KLnm5DvT2pSGmwXKb2 8EU86im7MouwmpsE/NaUXnk08XaCMFYbollzn2Oy9wUWhj90i+AQf1g9XSW5v49R lbF8M5ESsDOGhPgVLbH7Jp7cXsKWHZKuj2LpjOy8WrIf/Qle7gjxMUnmP9cMJgvw Sb8AhRAPqoF9uCmwzoJBjNAPlzSo3lQzt9f7Cc0j6IaqpXVG8PuBoUJ2NB1dNsmx mOekjzGcuVx+RUt5+jAOHWqLyAeSmK7S0IW2jd5OIH0EuilMI91giorHvKi4irq/ qWJcPFPtHlyyHoZ4jVLMzXLacLXFC/8CSQs9qsIBSFP0H3x9/2ysI+P0BtzsupZB BETXlUXZvJB1flOeNCoPt3QIgrntLUmWMQ8vxV6/Eg2HQVBb/W9+pwGK7EUo0ZTq 8fYcBEt4UnBxawix5EnQNvAzbCIDqUnjBeDH8QE/iZfukWWsApU= =BQhI -----END PGP SIGNATURE----- --J4afxqEXmb9rWpV6m3HgrfeKBvIlkkwGT--