sesman: do reconnect to an exisitng Xorg session
This commit is contained in:
parent
e840c8f335
commit
8566230442
@ -130,10 +130,10 @@ scp_v0_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
|
||||
s->domain, s->program, s->directory,
|
||||
s->client_ip);
|
||||
}
|
||||
else
|
||||
else if (SCP_SESSION_TYPE_XORG == s->type)
|
||||
{
|
||||
/* type is SCP_SESSION_TYPE_XORG */
|
||||
log_message(LOG_LEVEL_INFO, "starting XOrg session...");
|
||||
log_message(LOG_LEVEL_INFO, "starting Xorg session...");
|
||||
display = session_start(s->width, s->height, s->bpp, s->username,
|
||||
s->password, data, SESMAN_SESSION_TYPE_XORG,
|
||||
s->domain, s->program, s->directory,
|
||||
|
@ -108,6 +108,9 @@ session_get_bydata(char *name, int width, int height, int bpp, int type)
|
||||
case SCP_SESSION_TYPE_XRDP: /* 1 */
|
||||
type = SESMAN_SESSION_TYPE_XRDP; /* 1 */
|
||||
break;
|
||||
case SCP_SESSION_TYPE_XORG:
|
||||
type = SESMAN_SESSION_TYPE_XORG;
|
||||
break;
|
||||
default:
|
||||
lock_chain_release();
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user