A minimal session manager for Sway, so GNOME Software can restart or shut down after updates. It asks first through the session menu (swaydesk-session-menu, which it recommends); without the menu, it restarts or shuts down at once.
No window: it starts with the Sway session and exits with it.
Restart and shut down requests from apps open the session menu’s confirmation.
With an update waiting, shutting down first restarts to install it, then powers off.
Other requests, such as logging out, are refused, so apps don’t take Sway for GNOME.