Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 444662

Summary: x11-misc/lightdm doesn't provide "guest-account-script", making "guest" feature non-working
Product: Gentoo Linux Reporter: Elias Probst <mail>
Component: New packagesAssignee: Lars Wendler (Polynomial-C) <polynomial-c>
Status: CONFIRMED ---    
Severity: normal CC: yngwin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 'guest-account' script provided by *buntu

Description Elias Probst 2012-11-25 11:11:14 UTC
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.

Running
> 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
> #!/bin/bash
> 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.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2012-11-25 13:33:00 UTC
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.