systemd user session startup
This is roughly based on !2, but takes a number of other approaches.
See the commit that adds the units for a description. Also note that we will use systemd when it is available in this approach. Also, the session leader process is connected to a systemd unit using a fifo/FD which allows signalling session status both ways (basically systemd user instance and GDM/logind)
TODOs that are still left:
- gnome-shell has the capability to show a warning at login when extensions were disabled. We could hook it up here (just requires touching a file).
- Should we make the use of systemd compile time configurable (then we cannot drop the dbus restart)?
- Should we rename the XDG Desktop file entry for hiding (gnome-shell!507 (comment 500531))
I have tested this on F30 and everything seems to be working great. Only small issue is that SELinux is preventing systemd from being used.
F30 RPMs are at https://copr.fedorainfracloud.org/coprs/benzea/gnome-systemd/
SELinux issue: https://github.com/fedora-selinux/selinux-policy/issues/262.
gnome-shell MR: gnome-shell!507
mutter MR: mutter!571 (merged)
GDM MR: gdm!69
gnome-settings-daemon MR: gnome-settings-daemon!98
gnome-initial-setup MR: gnome-initial-setup!38
jhbuild MR for example update: jhbuild!16
Color legend: black = Requires dark blue = Requisite dark grey = Wants red = Conflicts green = After Created using (i.e. list most units explicitly and then hide a lot of stuff again): systemd-analyze dot --user firstname.lastname@example.org gnome-session-monitor.service gnome-session-manager.target gnome-session-initialized.target gnome-session.target gnome-session-pre.target gnome-session-stable.target gnome-session-wayland.target email@example.com firstname.lastname@example.org gnome-session-stable.timer gnome-session-stable.target gnome-session-failed.target gnome-session-failed.service gnome-session-shutdown.target gnome-shell-wayland.service gnome-shell-wayland.target gnome-shell-disable-extensions.target gnome-shell-extensions-disabled-warning.service gsd-power.target gsd-power.service graphical-session-pre.target graphical-session.target | grep -vP 'gnome-login|gnome-initial-setup|dbus.socket|timers.target|-\.slice|basic\.target|"shutdown.target|gnome\\x2dsession\\x2dmanager\.slice|gsd-(?!power)' | sed 's/darkblue/#0000c0/' | dot -Tsvg >gnome-systemd.svg