Currently when addon is installed it's service is enabled and started.
But immediately service is stopped, disabled, enabled and started again.
This second part should be executed only on addon's update.
update context is intended to be used on settings change.
This can later be extended to support selecting between
multiple overlays in an addon via config files in the
addon userdata dir.
Signed-off-by: Matthias Reichl <hias@horus.com>
Simplify the kodi addon wrapper patch, pass call hook context and
addon path on to wrapper instead of just enable/disable.
The logic of what should happen with service addons on
enable/disable/install/uninstall is moved out of kodi
into the wrapper script.
Also add restart and reload contexts so service addons can call
the wrapper from python code on settings change instead of having
to directly interact with systemctl.
Signed-off-by: Matthias Reichl <hias@horus.com>