Hi, in order to support the new TPM/FDE repair flow we are adding to the desktop-security-center, we would like to request installation and auto-connection for the shutdown interface so that the user can restart or power off the computer from the repair dialog.
name: desktop-security-center
description: The Security Center for Ubuntu Desktop, where users manage app permissions, disk encryption and Ubuntu Pro.
snapcraft: https://github.com/canonical/desktop-security-center/pull/275/files#diff-56759910381a014fecfd7556dd72ddd68c747d922a5b7df2044b9ce7c552f5f5
upstream: canonical/desktop-security-center on GitHub
upstream-relation: We (the desktop team) maintain the application and the snap
package.
plugs:
shutdown:
request-type: installation/auto-connection
reasoning: The desktop-security-center is adding a TPM/FDE repair flow on top of snapd's fix-encryption-support API. For some issues, the fix snapd reports is a restart, a restart into the firmware settings, or a power off, which only the user can carry out. The repair dialog offers to do it for them: only after the user confirms, it calls logind's Reboot or PowerOff with interactive authorization, so polkit still asks when other users are logged in. Nothing restarts or powers off in the background. Restarting is the expected next step of these repairs, the same reason firmware-updater was granted auto-connection of shutdown (linked below).
firmware-updater’s request: Request for firmware-update (shutdown plug autoconnection)
Thanks,
Yash