[Pkg-ltsp-devel] Bug#430074: ldm does not display many locales
Teddy Hogeborn
teddy at fukt.bsnet.se
Fri Jun 22 06:15:53 UTC 2007
Package: ldm
Version: 0.99debian11
Severity: normal
Tags: patch l10n
If the server har very many locales installed, LDM only displays a
certain number of them, and does not display any sessions (only the
"Default session). Reproduce this by having a server with all locales
installed.
This is because /usr/lib/ltsp/greeters/gtk limits the response from
ldminfod to 1024 bytes. A simple fix is to make the buffer larger:
--- /usr/lib/ltsp/greeters/gtk.~1~ 2007-01-11 08:20:45.000000000 +0100
+++ /usr/lib/ltsp/greeters/gtk 2007-06-22 07:55:41.000000000 +0200
@@ -396,7 +396,7 @@
sesslist=[]
langlist=[]
- for line in ldm_info.recv(1024).split('\n'):
+ for line in ldm_info.recv(8192, socket.MSG_WAITALL).split('\n'):
if line.startswith('/'):
sesslist.append(line)
else:
/Teddy
More information about the Pkg-ltsp-devel
mailing list