Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444662 - x11-misc/lightdm doesn't provide "guest-account-script", making "guest" feature non-working
Summary: x11-misc/lightdm doesn't provide "guest-account-script", making "guest" featu...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-25 11:11 UTC by Elias Probst
Modified: 2022-09-27 12:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
'guest-account' script provided by *buntu (guest-account,4.12 KB, text/plain)
2012-11-25 11:11 UTC, Elias Probst
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 2 Marek Szuba archtester gentoo-dev 2022-09-27 12:04:40 UTC
I'll be happy to accept patches implementing it in a Gentoo-friendly way but in the meantime, there seems to be so little interest in support for this that there is really no point in keeping this open.