endSessionDialog: Consider PackageKit as an optional dependency
At the moment, endSessionDialog.js
is assuming that PackageKit is available in some places, which often gets error messages in the journal for systems that do not ship PackageKit (e.g. Endless):
Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered
I understand it's nice to use PackageKit to provide additional options to the user when ending the session while an update/upgrade is pending, but I also think it would be nice if the shell could add a run-time check to gracefully handle the situation when PackageKit is not available.