<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 19/01/2018 à 22:18, Robert Dinse a
      écrit :<br>
    </div>
    <blockquote
      cite="mid:Pine.LNX.4.64.1801191316570.27508@centos6.eskimo.com"
      type="cite"> <br>
           You can use xrandr to set the screen size: <br>
      <br>
          xrandr -s 1440x900 <br>
      <br>
           It may not go to that size, it will only set to predefined
      screen sizes <br>
      that way. <br>
    </blockquote>
    I saw it, as modifying sessions or sizes doesn't work.<br>
    <br>
    Using wmctrl works fine with local connection, just inserting time
    wait between commands:<br>
    <br>
    ---------------------------------------------------<br>
    cmd="x2goclient --thinclient --kbd-type=pc105/fr --autologin
    --link=lan --clipboard=both --close-disconnect
    --session="+trim(sUser)+"@"+trim(sMachine)+" &"<br>
    run(cmd)<br>
    hwg_Sleep(2)<br>
    hb_processrun("sh -c 'wmctrl -l|grep "+chr(34)+"N/A "+chr(34)+"|wc
    -l'",,@text)<br>
    do while left(text,1) != "1"<br>
          hwg_Sleep(1)<br>
          hb_processrun("sh -c 'wmctrl -l|grep "+chr(34)+"N/A
    "+chr(34)+"|wc -l'",,@text)<br>
    enddo<br>
    if sScale != "1.0"<br>
       height=int(val(cheight)*val(sScale))<br>
       width=int(val(cwidth)*val(sScale))<br>
       cheight=ltrim(str(height))<br>
       cwidth=ltrim(str(width))<br>
       cmd="wmctrl -e 0,"+"10,70,"+cwidth+","+cheight+" -r
    "+trim(sUser)+"@"+trim(sMachine)<br>
       run(cmd)<br>
    endif<br>
    cmd="wmctrl -r "+trim(sUser)+"@"+trim(sMachine)+" -N
    "+chr(34)+"x2go: "+trim(sUser)+"@"+trim(sMachine)+chr(34)<br>
    run(cmd)<br>
    ------------------------------------------------<br>
    <br>
    But it doesn't works with command=XFCE<br>
    <br>
    That's why I need the answer to the first questions asked in my
    first mail ;)<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-01-05 14:38) | Hw.Gui (2637)</small>
      <hr></div>
  </body>
</html>