systemd: Move phoc into session
phoc currently spawns gnome-session which causes problems when switching gnome-session to use systemd, e.g. phoc aborting leaves gnome-session around (https://source.puri.sm/Librem5/phosh/-/merge_requests/824#note_158332), logout not working.
One possible approach is to move phoc activation to a unit as part of gnome-session too (although that means we get some ordering issue and need to make sure variable like $DISPLAY
etc get injected into other services environments (like systemctl import-environment ...
) but having it outside the likey calls for trouble.
Ideally we'd be able to do away with the whole /usr/bin/phosh
and have /usr/share/wayland-sessions/phosh.desktop
and just do gnome-session --session=phosh
.
Related: !824 (merged)
/cc @zhaofengli