2011/7/15 Chris Ostler <chris.ostler+xrdp-de...@gmail.com>:
> I've put a link to X11rdp in /usr/bin.  I tried running with the latest GIT
> version of xrdp, and still could not connect.  Grepping the source didn't
> turn up any obvious hardcoded paths.
> I also tried running xrdp and xrdp-sesman from the console.  This turned up
> the fact that there seemed to be something wrong with the parameters passed
> when starting the X server.  The console output showed:
> [20110714-16:55:28] [INFO ] scp thread on sck 7 started successfully
> [20110714-16:55:31] [INFO ] ++ created session (access granted): username X,
> ip X.X.X.X:51076 - socket: 7
> [20110714-16:55:31] [INFO ] starting X11rdp session...
> use: X [:<display>] [option]
> -a #                   mouse acceleration (pixels)
> -ac                    disable access control restrictions
> -audit int             set audit trail level
> -auth file             select authorization file
> bc                     enable bug compatibility
> [clipped]
> I wasn't able to figure out what exactly was dumping this output (I assume
> X11rdp), nor what actual parameters were passed in (and causing the
> problem).
> How can I get those parameters to see what the problem is?

Try to have a look on env_set_user() in env.c
and look at session_start_fork() in session.c
particularly look at these lines:
 xserver_params = list_create();
          xserver_params->auto_free = 1;
          /* these are the must have parameters */
          list_add_item(xserver_params, (long)g_strdup("X11rdp"));
          list_add_item(xserver_params, (long)g_strdup(screen));
          list_add_item(xserver_params, (long)g_strdup("-geometry"));
          list_add_item(xserver_params, (long)g_strdup(geometry));
          list_add_item(xserver_params, (long)g_strdup("-depth"));
          list_add_item(xserver_params, (long)g_strdup(depth));

          /* additional parameters from sesman.ini file */
          //config_read_xserver_params(SESMAN_SESSION_TYPE_XRDP,
          //                           xserver_params);
          list_append_list_strdup(g_cfg->rdp_params, xserver_params, 0);

          /* make sure it ends with a zero */
          list_add_item(xserver_params, 0);
          pp1 = (char**)xserver_params->items;
          g_execvp("X11rdp", pp1)


regards,
Nicola

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to