NX toakes care of the keyboard when the keyboard is null/null. In that case x2goagent switches to keyboard cloning mode and creates a blocking dir which effectively prevents x2go from setting the keyboard on startup. See Keyboard.c in NX agent. But it should not be us afterwards, it should be the same as on your client.

Uli

Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> schrieb am Di., 22. Feb. 2022, 19:29:
Hi guys,

developing rootless mode for x2go kdrive I found some strange behavior,
when trying to set up the keyboard layout. With NX, no matter what I'm
putting in sessions settings after session start the layout is 'us'. I
tried all possible options - 'auto-detect', 'do not configure',
'configure keyboard pc105/de'. The result is always same and in log file
I see the message from x2gosetkeyboard:

Feb 22 12:13:06 localhost /usr/bin/x2gosetkeyboard: x2gosetkeyboard
called with options:
Feb 22 12:13:06 localhost /usr/bin/x2gosetkeyboard:
/home/admin/.x2go/C-admin-51-1645553583_stAkonsole_dp24/keyboard is
blocked, not setting keyboard parameters from client-side settings

When after I'm suspending and resuming the session, with options
'auto-detect' and 'configure', the layout is correct.

for the moment I added some code for rootless x2gokdrive sessions in
x2gostartagent to setup the layout, so users could at least use the
single applications. But I'd like to make it right and unified for all
kind of sessions. Any idea who wrote the kbd layout stuff and what is
wrong here?

regards,
Alex
--
-----------------------------------------------------------
Oleksandr Shneyder        | Email: o.shneyder@phoca-gmbh.de
phoca GmbH                | Tel. : 0911 - 14870374 0
Schleiermacherstr. 2      | Fax. : 0911 - 14870374 9
D-90491 Nürnberg          | Mobil: 0163 - 49 64 461

Geschäftsführung: Dipl.-Inf. Oleksandr Shneyder

Amtsgericht München       | http://www.phoca-gmbh.de
HRB 196 658               | http://www.x2go.org
USt-IdNr.: DE281977973
-----------------------------------------------------------

_______________________________________________
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev