Hi Milan,

On Mi 15 Feb 2012 21:23:56 CET Milan Knížek wrote:

Hello,

the /usr/bin/x2gostartagent script does not sufficiently specify the
location of $XAUTHORITY file for the xauth command, while the command
line for starting x2goagent refers to a specific location
$HOME/.Xauthority.

Usually, this works, because if nothing is specified on the command
line for xauth and the $XAUTHORITY variable is not defined, it falls
back to $HOME/.Xauthority.

Nonetheless, recent GDM versions set XAUTHORITY
to /var/run/gdm/auth-for-$USER-blabla/database.

As a result, when opening a shadow session as another
user, /usr/bin/x2gostartagent adds the cookie to $XAUTHORITY
(/var/run/gdm...) and then starts x2goagent -auth $HOME/.Xauthority,
which fails obviously.


The attached patch removes the -f $HOME/.Xauthority parameter from the
x2goagent command line to resolve the problem. It also removes a
redundant '-S' parameter (there is already $SESSION_TYPE there).

Can users of other distributions or display managers test if it does not
break something else? (It works on Arch Linux with GDM and Xfce.)

Regards,

Milan

To me, your patch makes sense...

Alex? Others? Comments?

Mike


--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpFWfBVdFT6Q.pgp
Description: Digitale PGP-Unterschrift

_______________________________________________
X2Go-Dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/x2go-dev

Reply via email to