~/swaydesk/components/sessionmgr

← All components

Restart after updates

Restart after updates

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.

Rust · source · More in the guide

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-sessionmgr

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-sessionmgr

Arch Linux

sudo pacman -Syu swaydesk-sessionmgr swaydesk-session-menu

pacman doesn't install optional dependencies, so the line already has the ones apt installs by itself.

Start it on plain Sway

In ~/.config/sway/config:

exec swaydesk-sessionmgr

It answers GNOME Software’s restart and shut down after updates, and exits with Sway.

Shortcuts

On its own, when an app asks

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.