elementary / default-settings

Default settings for elementary OS
GNU General Public License v3.0
39 stars 28 forks source link

GSettings overrides not working in installer session #214

Closed davidmhewitt closed 3 years ago

davidmhewitt commented 3 years ago

Since #186 , the installer session doesn't have the GSettings defaults so we get the wrong icon theme/stylesheet etc.

After looking into this further, it doesn't really look like it would be possible to make it have Pantheon as its XDG_CURRENT_DESKTOP as that would cause the autostarts from the main session to start too (like the dock, and normal wingpanel, etc).

I think there's a few options:

tintou commented 3 years ago

It also seems that XDG_CURRENT_DESKTOP is a dictionary, so I wonder how it would work with a session named Pantheon:Installer

davidmhewitt commented 3 years ago

Just tried that and gnome-session launches the autostarts for both session types (so we still get the dock and normal wingpanel etc in the installer session). But the GSettings overrides are correct.

danirabbit commented 3 years ago

We talked in standup about a couple things:

davidmhewitt commented 3 years ago

I've spent the evening trying to get the installer to run in the greeter, like initial setup does, and it seems like it's going to be impossible to do without tinkering with stuff that we shouldn't.

The lightdm user isn't in the necessary groups to be able to elevate the permissions for the installer. So we need to continue to run it under the live session user which is in the sudo group. I'll have a think about ways in which we can use that user for both the installer and live sessions, instead of using the guest account for the live/demo session.

danirabbit commented 3 years ago

Closed in https://github.com/elementary/installer/pull/484