Re: [ldm-trunk] Rev 1155: support session selection for nomad
Vagrant Cascadian <[email protected]> Wed, 8 Apr 2009 15:24:23 -0700
| Newsgroups | gmane.linux.terminal-server.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 08, 2009 at 07:00:25AM -0000, noreply-+ipbUBPD95tH4x6Dk/[email protected] wrote: > === modified file 'src/ldm.c' > --- src/ldm.c 2009-03-30 20:44:53 +0000 > +++ src/ldm.c 2009-04-08 06:58:05 +0000 > @@ -295,7 +295,17 @@ > > rc_files("xsession"); > if (ldm.nomad) { > - command = g_strjoin(" ", "rdesktop", "-z", "-f", "-u", ldm.username, "-p", ldm.password, "-s", ldm.session, " ", ldm.server, NULL); > + ldminfo *curr_host = NULL; > + curr_host = g_hash_table_lookup(ldminfo_hash, ldm.server); > + guint i; > + for(i = 0; i < g_list_length(curr_host->sessions); i++) { > + gchar * str = g_list_nth_data(curr_host->sessions, i); > + if(!g_strcmp0(str, ldm.session)) { > + break; > + } > + } > + gchar * my_session_name = g_list_nth_data(curr_host->session_names, i); > + command = g_strjoin(" ", "rdesktop", "-z", "-f", "-u", ldm.username, "-p", ldm.password, "-s", g_shell_quote(my_session_name), " ", ldm.server, NULL); > ldm.nomadpid = ldm_spawn(command, NULL, NULL, NULL); > g_free(command); > g_free(ldm.password); this seems to completely break it for me (on Debian). the session indefinitely stalls on login. in /var/log/ldm.log, it has an "X session ended" message almost immediately after login. seems like rdesktop may immediately exit? i couldn't find anything in the logs about the command failing. i actually looked into this a bit further, and can mimic session/language selection (ldm 2.0.39) by tweaking /etc/xrdp/startwm.sh to grab those values out of the user's ~/.dmrc, but that's entirely server-side and requires manual configuration of the server. if it works for opensuse, i'm guessing the defaults for xrdp might be set up a little differently. i tried diving into the patches opensuse applies to xrdp, but it's a bit over my head. i still have problems with ltspfs not unmounting after logout, which causes problems on subsequent logins. live well, vagrant ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _____________________________________________________________________ Ltsp-developer mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-developer For additional LTSP help, try #ltsp channel on irc.freenode.net