From mike.gabriel@das-netzwerkteam.de  Thu Apr 10 18:57:46 2014
Received: (at 402) by bugs.x2go.org; 10 Apr 2014 16:57:47 +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 55EF33BC41
	for <402@bugs.x2go.org>; Thu, 10 Apr 2014 18:57:46 +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 8DF801FBB;
	Thu, 10 Apr 2014 18:57:44 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id E537C3BB4C;
	Thu, 10 Apr 2014 18:57:45 +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 xAXeKYNvDc53; Thu, 10 Apr 2014 18:57:45 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id A6E063B9F9;
	Thu, 10 Apr 2014 18:57:45 +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 16:57:45 +0000
Date: Thu, 10 Apr 2014 16:57:45 +0000
Message-ID: <20140410165745.Horde.xCxYOAHT8DxhPF2Uy13reA1@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>
 <20140410112954.Horde.uCkuh3QAX7cM8yLbgqcxtQ1@mail.das-netzwerkteam.de>
 <e0eb059bb49c22670224068d1ec228ca.squirrel@amospalla.es>
In-Reply-To: <e0eb059bb49c22670224068d1ec228ca.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="=_Ml7mr61-7a2cKCV5eldlug2";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0

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

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

Hi Jordi,

On  Do 10 Apr 2014 15:46:26 CEST, jordi wrote:

>> 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/92885/
>>> and this pre-runcommand.d: http://paste.debian.net/92886/ .
>>>
>>> I write to files to save the state of the two settings previous to bein=
g
>>> modified so I can restore it. I set a folder variable where I save thos=
e
>>> files. Would that be a correct way to work inside X2go? I set them to
>>> /tmp
>>> 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, an=
d
>>> 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
>>> it
>>> interesting to try tell me to add it.
>>
>> The approach is good. I have copied both scripts from paste.debian.net
>> to my local working copy of x2gomatebindings. Thanks!
>>
>> However, one thought:
>>
>> With your proposed approach, the dconf/gsettings setup remains
>> X2Go'ish for the duration of the X2Go Session.
>> It would be good, to make those settings and remove them immediately,
>> after the session has successfully come up. I am not sure how MATE
>> will behave if you launch the post-runcommand script 20 minutes after
>> the session has come up.
>>
>> And another thought...
>>
>> Another approach actually is... Talking to MATE upstream and asking
>> them to patch their code directly (i.e. ignore those settings / use
>> pre-set value if MATE runs inside an X2Go session). I will talk to
>> Stefano & co. about that (who is MATE upstream).
>
> I don't really know if these settings are session aware, but my impressio=
n
> is that those are global settings for a user. If they are not and I can
> modify the script please let me know!

My question is: if you run the pre-runcommand script just before=20=20
session=20startup and then run the post-runcommand script right after=20=20
session=20startup (not when the session is ended), are the settings then=20=
=20
ok?

Mike
--=20

DAS-NETZWERKTEAM
mike gabriel, 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

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

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

iQIcBAABAgAGBQJTRs2JAAoJEJr0azAldxsxCigQAIyWYV83r7dJjs3xyuN5DYiZ
9wIrWeJTcyshsgrRcmwItVN4D7DP6PiLuAF+Fs0JujRj6/WBF/9XocoMTgnj5rN1
Ma8ro/toD1Fv181+V5gX3W89LZfW4XRvZqRgGIaVhOQFmAElejApFFxWUA5w5LUm
p/eUiqx6sHfdU1nZ22HmmxcpE53LsVpXuD36w2pmkDQZJ08ENOFQLgc/e2ass3c3
nidIZ80OHMmUiV1PzP8+GFAsvBAew7QDYUUTudJh9Z7eonxDJ9Chmq7b6Wzole27
19oNHO4KebWvaMu4/nqLCz19CDxAHoURWPRXJsVw9p3pkVbKhYKGd1MG0qHSfnT5
v6JyFXiStLIFUJorXU78zsuN0quG4GOi6+dhJvvF3eMmoTaM/9TnFCuL+bN2Zt4I
BN8CTtOUW1rXfxvr1J2wZvDcCrVSC1oWXg/ZpX6DhItpDBq3vnSfP1Px9pwo8jq8
IR+ULa0MXbWhF+scezE7Vs/LItwqkvO0K3RTDMKlrNmw68pzYr0pxHlkZsLEQgpc
JF1kVEOtF+21dEUi4e3ZmAevnTNV9atxSqq1u6u+UeHfIUGHCv3y/f8z/1PrisiT
Ke+QsHj3sV/T3nrj7VZVqX/Cck8WXqogIeYRi+ycksWfHtxFnIjs7Xnabpn+HYAt
G/mW800SX1WzyjpUAfc7
=zLT2
-----END PGP SIGNATURE-----

--=_Ml7mr61-7a2cKCV5eldlug2--

