Created attachment 330526 [details]
'guest-account' script provided by *buntu
x11-misc/lightdm has a feature to run so called guest sessions, which can be used to provide a desktop environment to unregistered users which is reset after each logout.
> qdbus --system org.freedesktop.DisplayManager /org/freedesktop/DisplayManager/Seat0 org.freedesktop.DisplayManager.Seat.HasGuestAccount
returns "false" which indicates, that the guest account capability of LightDM isn't working.
After some digging in the LightDM source I found out, that this is the result of not finding an executable as configured in "guest-account-script" in /etc/lightdm/lightdm.conf (defaults to "guest-account").
By creating /usr/sbin/guest-account with just this content
> return 0
and making it executable, the 'qdbus' test returns "true".
LightDM itself doesn't ship the "guest-account" script but leaves this to the distributions to create one.
Ubuntu is right now the probably most widespread user of LightDM as default login manager and also provides a working script for this (also attached to this bug), but this script itself doesn't quite fit Gentoo and needs some work to be suitable for Gentoo:
- replace the usage of deluser with plain userdel
- add 'tmpfs' as a Kernel dependency to the ebuild (maybe depending on USE="guest"?)
- check the services listed in line 72 how they apply to Gentoo, remove unneeded ones, maybe add new ones
Maybe someone else can review this script and comes up with some more improvements.
/etc/guest-session is optional and should be not shipped by Gentoo, but instead left to the user to provide it once it is needed. By default /etc/skel is used.
Now why would LigthDM provide such a feature without providing a script to use it in its sources? Hmm it seems to me that lightdm seems more and more tight to Ubuntu as it evolves.