Ubuntu – Custom LightDM sessions to launch an application

gnome-sessionlightdm

I'm trying to set up Ubuntu to act as a kiosk running a custom application, and am trying to get a LightDM session built to automatically start it.

Ideally, I'd like to have two sessions available from LightDM. The default would start my application fullscreened, and the other would open a minimal desktop in case any configuration (mostly connecting to a wireless network) needed to be done.

I've done a lot of research over the last week on custom LightDM & Gnome sessions. I've got a custom greeter written for LightDM that can start either session, but I can't figure out how to add a specific application to the Gnome session that is ultimately started without just putting a launcher in the global startup directory, and I don't want to do that since I don't want the application starting when they open "configuration mode".

Another problem I've run into on my current workaround is that the application doesn't fullscreen properly, which makes me think I'm not starting enough of a gnome session (currently it's just metacity, no panel or anything else).

Edit:

I found a solution. See http://www.webupd8.org/2011/11/make-applications-autostart-only-in.html

Best Answer

Have you looked at gnome startup applications? It's possible it won't work running a pretty naked install like that. gnome-session-properties Is the generic way to do it. Let me know if it doesn't work and I'll delete it.