(2016-04-02, 08:05)illiac4 Wrote: Since new db23 addon disables all self installed addons i am using this script to enable them. It is better then doing it by hand.
Yes, it will leave everything disabled if you start the system without an existing Addons*.db, while it will enable everything if you migrate an existing Addons*.db.
Despite best efforts to convince otherwise, this is considered
the right thing to do, but there may still be a chance to implement a better solution if the current implementation continues to be a problem (which, IMHO, it will).
Hacking around the problem isn't really a solution, not that there is an easy fix since the problem occurs after Kodi starts (as it creates or migrates the db). PR9481 is the closest we came to a sane fix.
(2016-04-02, 08:05)illiac4 Wrote: Is it possible to optimize it?
The best you can do for now is to start Kodi in order that it creates the new db, then kill Kodi before modifying the new db using SQL, and hopefully that will be the end of the problem. Obviously this is a potential support nightmare waiting to happen.