Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
add InstallAddon builtin #8419
InstallAddon will always show a yes/no popup before installation.
Yet another thing?
Some functions provided by add-ons aren't explicitly started by the user but used by skins to enhance functionality or information. There's no way to prompt for those functions.
This provides a way for the skin to offer "out of the box functionality" without forcing the installation of add-ons. Coupled with a dialog explaining the user why the installation of the add-on is requested provides a much better process than the way it is currently handled. A welcome change imo.
thanx for the review @tamland , code updated as suggested.
no worries about the possible abuse. currently we have to 'abuse' runplugin() to install addons, when we don't even want to actually run the addon. we just want to install it.
this can be used for other types of addons as well (resources for instance) that can't be covered by runscript() and the likes.