! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Request: Warn user if package manager still running prior to logout / shutdown
Status:
RESOLVED: INVALID
Severity:
enhancement
Product:
Xfce4-session
Component:
General

Comments

Description Kip 2016-12-19 03:52:17 CET
We've all known someone or been that someone that at some point in time shut down their machine while their distro's package manager was in the middle of rebuilding initrd, unpacking a kernel, or some other critical task that, if interrupted, would leave the system in a broken state.

It would be great if when logging out / shutting down the machine via xfce4-session's GUI, it checked to see if the distro's package manager was running (e.g. dpkg, yum, etc.). If it was running, the user could be warned and given the opportunity to wait or cancel ending their xfce session.
Comment 1 Theo Linkspfeifer editbugs 2019-07-06 18:02:23 CEST
Both apt [1] and dnf [2] use systemd inhibitors to prevent a shutdown or reboot. This is not needed for a logout, because the package installation is not a user process and it will continue until finished.

Ideally, every package manager should handle this in some way.

---
[1] https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1820886
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1109927

Bug #13242

Reported by:
Kip
Reported on: 2016-12-19
Last modified on: 2019-07-06

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
Unspecified

Attachments

Additional information