Hi,
in cde 2.5.0 in dtlogin the option: Command Line Login
does not work anymore. The reason is that some code necessary
for Command Line Login was removed with commit:

1eccd2e0425ee52d777c4749af0d7d43bbb28f34
dtlogin: make the language menu works

Attached there is a patch that restore such code and make
Command Line Login work again.
With the code back the language menu still works,
but there is now a delay when you change the language.
The reason is that in the function ManageSession defined in 
programs/dtlogin/session.c when the call to ApplyFontPathMods(d, dpy)
gets executed (programs/dtlogin/fontpath.c) the line: XGetFontPath(dpy, 
&numPaths)
causes the X server to crash.
At this point since X is not running the Desktop Login gets suspended as
if Command Line Login was selected, therefore the delay.

I'll let somebody more capable than me investigate 
what is causing the crash and possibly fix it.

--- a/programs/dtlogin/dm.c     2023-01-23 23:11:35.354435970 -0400
+++ b/programs/dtlogin/dm.c     2023-01-23 23:09:31.966380370 -0400
@@ -1446,6 +1446,16 @@
 *
 *****************************************************************************/
 
+#if defined (_AIX) && defined (_POWER)
+#define GETTYPATH "/usr/sbin/getty"
+#elif defined(__OpenBSD__)
+#define GETTYPATH "/usr/libexec/getty"
+#elif defined(__linux__)
+#define GETTYPATH "/sbin/getty"
+#else
+#define GETTYPATH "/etc/getty"
+#endif
+
 static int 
 StartGetty( struct display *d )
 {
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to