From mike.gabriel@das-netzwerkteam.de  Thu Apr 10 13:29:55 2014
Received: (at 402) by bugs.x2go.org; 10 Apr 2014 11:29:56 +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,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id B656F3BC41
	for <402@bugs.x2go.org>; Thu, 10 Apr 2014 13:29:55 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id B867A1C62;
	Thu, 10 Apr 2014 13:29:53 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 157573BADA;
	Thu, 10 Apr 2014 13:29:55 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id fHK82OBEQeEt; Thu, 10 Apr 2014 13:29:54 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id CA30E3B9F9;
	Thu, 10 Apr 2014 13:29:54 +0200 (CEST)
Received: from p5B284F31.dip0.t-ipconnect.de (p5B284F31.dip0.t-ipconnect.de
 [91.40.79.49]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Thu,
 10 Apr 2014 11:29:54 +0000
Date: Thu, 10 Apr 2014 11:29:54 +0000
Message-ID: <20140410112954.Horde.uCkuh3QAX7cM8yLbgqcxtQ1@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: jordi@amospalla.es
Cc: 402@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#402: Bug#402: Numlock issues
References: <8be4d14fda106d24b56c8cf94ec9a918.squirrel@www.amospalla.es>
 <bfeb081fdd3ec995c47b4ee7c9c96654.squirrel@amospalla.es>
 <20140402130029.Horde.pCv_6moTdCQfNpA2fQNFFQ1@mail.das-netzwerkteam.de>
 <53404130.6080903@amospalla.es>
 <20140405193722.Horde.TssS-w1ielZ5Dbza76YEJA1@mail.das-netzwerkteam.de>
 <3f8a733e7f2c8b1774c67424a4d52209.squirrel@amospalla.es>
In-Reply-To: <3f8a733e7f2c8b1774c67424a4d52209.squirrel@amospalla.es>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.7)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 91.40.79.49
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101
 Firefox/26.0 Iceweasel/26.0
Content-Type: multipart/signed; boundary="=_8ZBuvmN1qWP-7XtXrFyQvw1";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0

This message is in MIME format and has been PGP signed.

--=_8ZBuvmN1qWP-7XtXrFyQvw1
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Jordi,
(I am re-Cc:-ing #402 in our BTS, hope that's ok...)


On  Do 10 Apr 2014 12:03:02 CEST, jordi wrote:

>> Hi Jordi,
>>
>> On  Sa 05 Apr 2014 19:45:20 CEST, Jordi Marqu=C3=A9s wrote:
>>
>>> Hello Mike, sorry for late answer.
>>>
>>> I have looked at it, so what you need is a simple bash script. I can
>>> do that. Could I write it and send it to you?
>>>
>>> If so, I think I can do it on monday.
>>>
>>> Jordi.
>>
>> Sure, send it to me.
>>
>> Make sure that X2Go session startup does not break local session
>> startup. So if you change something in pre-runcommand.d, make sure it
>> gets restored in post-runcommand.d.
>
> Hello Mike,
>
> sorry again for being late, I've got more work than I can handle.
>
> Please take a look at this post-runcommand.d http://paste.debian.net/9288=
5/
> and this pre-runcommand.d: http://paste.debian.net/92886/ .
>
> I write to files to save the state of the two settings previous to being
> modified so I can restore it. I set a folder variable where I save those
> files. Would that be a correct way to work inside X2go? I set them to /tm=
p
> to test, please modify them accordingly to what would be the best value.
>
> Not directly related to this, I've played also with the reduced_resources
> variable, which set to true, disables completely windows animations, and
> makes window moving be done with a classic transparent line drawn box,
> instead of the real window image. I've applied to my users, if you find i=
t
> interesting to try tell me to add it.

The approach is good. I have copied both scripts from paste.debian.net=20=
=20
to=20my local working copy of x2gomatebindings. Thanks!

However, one thought:

With your proposed approach, the dconf/gsettings setup remains=20=20
X2Go'ish=20for the duration of the X2Go Session.

It would be good, to make those settings and remove them immediately,=20=20
after=20the session has successfully come up. I am not sure how MATE=20=20
will=20behave if you launch the post-runcommand script 20 minutes after=20=
=20
the=20session has come up.

And another thought...

Another approach actually is... Talking to MATE upstream and asking=20=20
them=20to patch their code directly (i.e. ignore those settings / use=20=20
pre-set=20value if MATE runs inside an X2Go session). I will talk to=20=20
Stefano=20& co. about that (who is MATE upstream).

Greets,
Mike
--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x=
fb

--=_8ZBuvmN1qWP-7XtXrFyQvw1
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJTRoCyAAoJEJr0azAldxsxURsP/iPNS2pqQSlNuz6qIqDKvsJX
jiaCtwaYHE399MjtZpjtAnWRH9WwwtSiUWaIU9cdDVE6aAHLB92i3i1oBmSomj/o
qR96NKKd7L9isTGRlyGLXA/o+qR2Je+UPsysBWAyocmxg8g/Y+q+1fKRpziF+Hr7
/gnQhCY4TuiU0r+U+SV39krW0CEgzijyqcsBb8d0Hgfa1hZYYIQISlL+QXg14hU3
wo9LRUAOcFwGSQtDKRC6HfvoLpstygigo9l5ucGN9Z8i3D/3rTEwFfaU+0zibrNx
2bObje6cvtAsz0BjuLbSMRNghZzjmSfk1GDNYfAfp/pOzSKyGvYybQ2ouqHkylBm
cTP9wJrlWG/QSQWKvdHt2zVHLu2tdfPn05QTs5NeV+kg98shfO5ErsC5T4rIH2vo
4JfF04MSRWhSgDpPuS8ZXs1Yc8cyxEOTTc4tRh3u+vIPIcOCVmROTNJY3xI9idmu
gSdhaLmAyNYyi9iZaPxO6umBAwmhhEHP66uw9ZZcTLnGt6t3QeVHstB8v9oJEmue
eolcGBuPVmbwDHrKWoTyEC2RO7TS3m+p5ZQbGz9e5T3QzHradtPAKe1F66kkdy5y
olFc2KqcbABRU5hGyf4lEDwmt9XPGhLQQzGKkZrQrLhDwae6aS1xo0MpmqyD82yy
gP6VAI7MbgPHL1KkvlQW
=/HnL
-----END PGP SIGNATURE-----

--=_8ZBuvmN1qWP-7XtXrFyQvw1--

