[LightDM] {Disarmed} Re: Lightdm host in XDMCP chooser menu
Robert Ancell
robert.ancell at gmail.com
Thu May 5 21:34:15 UTC 2016
Hi Wolfgang,
Could you file a bug [1] to track this request?
Thanks,
--Robert
[1] https://bugs.launchpad.net/lightdm/+filebug
On Thu, 5 May 2016 at 12:20 Wolfgang Baudler <wbaudler at gb.nrao.edu> wrote:
> > Hi Wolfgang,
> >
> >>From the XDMCP documentation:
> >
> > *Hostname*: ARRAY8
> > Is a human readable string describing the host from which the
> packet
> > was sent. The protocol specifies no interpretation of the data in this
> > field.
> > *Status*: ARRAY8
> > Is a human readable string describing the status of the host. This
> > could include load average/number of users connected or other
> information.
> > The protocol specifies no interpretation of the data in this field.
> > Looking at the LightDM code we don't set anything in these fields. It
> > seems
> > we should probably set hostname to the system hostname (and make
> > configurable in lightdm.conf). Not sure what is appropriate to set status
> > to (if anything).
> >
>
> Regarding status, the original xdm comes with a shell script called
> "Xwilling" which produces the status field string by default. Example:
>
> 3 users, load: 0.00, 0.07, 0.14
>
> The script looks like that:
>
> #!/bin/sh
> #
>
> # The output of this script is displayed in the chooser window.
> # (instead of "Willing to manage")
>
> load="`uptime|sed -e 's/^.*load[^0-9]*//'`"
> nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`"
> s=""; [ "$nrusers" != 1 ] && s=s
>
> echo "${nrusers} user${s}, load: ${load}"
>
>
>
> Wolfgang
>
>
> _______________________________________________
> LightDM mailing list
> LightDM at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/lightdm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/lightdm/attachments/20160505/f87627e3/attachment.html>
More information about the LightDM
mailing list