Le 09/05/2018 à 10:50, Walid MOGHRABI a écrit :
Easiest method would be to use the client GUI at least once to create your session settings (it will create a $HOME/.x2goclient/sessions file on Linux, C:\\users\<user>\.x2goclient\sessions on Windows) and then, from cli, just use :

x2goclient --session=<session name>

You can use the --session-conf to set another location for your sessions file.
The sessions file is just a .ini style text file you can edit manually.
Yes, I know that, my way now is to use the syntax:

x2goclient --thinclient --kbd-type=pc105/fr --autologin --link=lan --clipboard=both --close-disconnect --session="x2go: alain@aupeix-GX723" &

It works nicelly, and connect automatically, but:

- it open the x2go-client window,  connect, and close the x2go-client after connection.

It's what I ought not to see ... but I agree, it works.

The principal difference with your simplest syntax, is that mine close the x2go-client window after disconnection.

Thanks
A+
--

Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/

U.buntu 12.04 & Xu.buntu 16.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2018-03-016 17:10) | Hw.Gui (2642)