I think that shutdown, restart and hibernate should be avoided if the package-manager is working anyways.
To achieve this i recommend that the gnome (or KDE/Xfce) dialog to initiate those actions should check for apt's lock-file and warn the user before he can proceed.
A small warning dialog like "Warning: the package manager is working right now, it is strongly recommended to wait for it to finish." and the user's options could be like "proceed anyways / wait and proceed / cancel".
Of course this could also be a text-based dialog if you're going to call poweroff, reboot or pm-whatsoever from shell.
Hi!
I think that shutdown, restart and hibernate should be avoided if the package-manager is working anyways.
To achieve this i recommend that the gnome (or KDE/Xfce) dialog to initiate those actions should check for apt's lock-file and warn the user before he can proceed.
A small warning dialog like "Warning: the package manager is working right now, it is strongly recommended to wait for it to finish." and the user's options could be like "proceed anyways / wait and proceed / cancel".
Of course this could also be a text-based dialog if you're going to call poweroff, reboot or pm-whatsoever from shell.
Cheers,
Oliver