[X2go-dev] x2goserver: x2gosetkeyboard

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Mon May 30 16:01:46 CEST 2011


Hi devs,

for introspection I have added an x2goserver script: x2gosetkeyboard  
to X2go Git:

x2gosetkeyboard script:
http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff

x2gosetkeyboard man page:
http://code.x2go.org/gitweb?p=x2goserver.git;a=blob_plain;f=.build_man2html/html/man8/x2gosetkeyboard.8.html

The script takes a ,,keyboard'' file from $HOME/.x2go/C-$X2GO_SESSION  
and parses its contents for the identifiers rules, model, layout,  
variant, options. These options will then be passed on to a setxkbmap  
call. The keyboard file layout has been adopted from the free NX  
project. In the free NX project they have patched nxagent to digest  
this ,,keyboard'' file.

If the ,,keyboard'' file lacks presence, nothing happens.

I would be grateful if people could take a look and comment on  
potential problems, security issues etc.

I would like to use this script as a post-startup command for python-x2go.

If you see anything problematic about this piece of code, please let  
me know and we try to figure out what solution may be best for all.

Thanks+Greets,
Mike

-- 

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

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

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20110530/ac7dd253/attachment.pgp>


More information about the x2go-dev mailing list