elementary / greeter

Login and Lock Screen greeter for elementary OS and Pantheon, using LightDM
GNU General Public License v3.0
152 stars 39 forks source link

Handle installer/demo session mode switching #509

Closed davidmhewitt closed 3 years ago

davidmhewitt commented 3 years ago

To be used in conjunction with https://github.com/elementary/installer/pull/486

To facilitate allowing both the installer session and live (demo) session to use the same user, so that we don't have issues with permissions by using a guest user for the demo session, we can have the greeter do the switching between the two session types.

Unfortunately the SwitchToUser method on the lightdm DBus interface doesn't work for switching between two sessions for the same user, so it seems the best way that the installer can signal to the greeter that it wants the demo session is to touch a file and then log out, allowing the greeter to automatically log back in to the correct session.

If this file is not present, the greeter will just launch the installer session.