Is there any trick to run my "destructor" code in an extension when Gnome Shell is closing (e.g. computer turning off)? I need to save some state variables to load them again in init()
on start.
I need something like function enable()
or disable()
. Maybe there is some signal being fired which I could connect my code to?