topgrade
topgrade copied to clipboard
FR: Ask to reboot/logout
When you install new kernel or kernel module or something, zypper (OpenSUSE pm) may request to reboot Also, GNOME Shell extensions expect shell restart to be reapplied (there are enough to logout)
Which operating systems are supported by this tool?
- OpenSUSE
- Linux+GNOME
What should Topgrade do to figure out if the tool needs to be invoked?
- If after update
zypper needs-rebootingreturns true, ask for reboot (probably,/usr/sbin/reboot) - If any GNOME Shell extension updated:
a. On Wayland: logout with
gnome-session-quitb. On X: restart shell withbusctl --user call org.gnome.Shell /org/gnome/Shell org.gnome.Shell Eval s 'Meta.restart("Restarting…")'or if Shell version >= 41 logout too
This is a good idea for OpenSUSE, but for Gnome it's too much to ask for unless this could be read like on openSuse because it would require the analysis of the changed packages.
For GNOME, 'hasUpdate' option can be used from gdbus call --session --dest org.gnome.Shell.Extensions --object-path /org/gnome/Shell/Extensions --method org.gnome.Shell.Extensions.ListExtensions