<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 09/05/2018 à 10:50, Walid MOGHRABI a
      écrit :<br>
    </div>
    <blockquote
      cite="mid:55056316.28950154.1525855831080.JavaMail.root@servicemagic.eu"
      type="cite">
      <pre wrap="">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.</pre>
    </blockquote>
    Yes, I know that, my way now is to use the syntax:<br>
    <br>
    x2goclient --thinclient --kbd-type=pc105/fr --autologin --link=lan
    --clipboard=both --close-disconnect --session="x2go:
    alain@aupeix-GX723" &<br>
    <br>
    It works nicelly, and connect automatically, but:<br>
    <br>
    - it open the x2go-client window,  connect, and close the
    x2go-client after connection.<br>
    <br>
    It's what I ought not to see ... but I agree, it works.<br>
    <br>
    The principal difference with your simplest syntax, is that mine
    close the x2go-client window after disconnection.<br>
    <br>
    Thanks<br>
    A+
    <div class="moz-signature">-- <br>
      <hr>
      Alain Aupeix<br>
      <a class="moz-txt-link-freetext" href="http://jujuland.pagesperso-orange.fr/">http://jujuland.pagesperso-orange.fr/</a><br>
      <a class="moz-txt-link-freetext" href="http://pissobi-lacassagne.pagesperso-orange.fr/">http://pissobi-lacassagne.pagesperso-orange.fr/</a><br>
      <hr>
      <small>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)</small>
      <hr></div>
  </body>
</html>