<div dir="ltr"><div><div><div>Hi Wolfgang,<br><br></div>Could you file a bug [1] to track this request?<br><br></div>Thanks,<br></div>--Robert<br><div><div><br>[1] <a href="https://bugs.launchpad.net/lightdm/+filebug">https://bugs.launchpad.net/lightdm/+filebug</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 5 May 2016 at 12:20 Wolfgang Baudler <<a href="mailto:wbaudler@gb.nrao.edu">wbaudler@gb.nrao.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Hi Wolfgang,<br>
><br>
>>From the XDMCP documentation:<br>
><br>
> *Hostname*: ARRAY8<br>
> Is a human readable string describing the host from which the packet<br>
> was sent. The protocol specifies no interpretation of the data in this<br>
> field.<br>
> *Status*: ARRAY8<br>
> Is a human readable string describing the status of the host. This<br>
> could include load average/number of users connected or other information.<br>
> The protocol specifies no interpretation of the data in this field.<br>
> Looking at the LightDM code we don't set anything in these fields. It<br>
> seems<br>
> we should probably set hostname to the system hostname (and make<br>
> configurable in lightdm.conf). Not sure what is appropriate to set status<br>
> to (if anything).<br>
><br>
<br>
Regarding status, the original xdm comes with a shell script called<br>
"Xwilling" which produces the status field string by default. Example:<br>
<br>
3 users, load: 0.00, 0.07, 0.14<br>
<br>
The script looks like that:<br>
<br>
#!/bin/sh<br>
#<br>
<br>
# The output of this script is displayed in the chooser window.<br>
# (instead of "Willing to manage")<br>
<br>
load="`uptime|sed -e 's/^.*load[^0-9]*//'`"<br>
nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`"<br>
s=""; [ "$nrusers" != 1 ] && s=s<br>
<br>
echo "${nrusers} user${s}, load: ${load}"<br>
<br>
<br>
<br>
Wolfgang<br>
<br>
<br>
_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/lightdm" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
</blockquote></div>