Posts: 127
Joined: Dec 2022
Can Kodi kindly track addons that were auto installed as a dependency when the addon needing them has been uninstalled.
Should be as easy as setting a flag on an addon, userinstalled=1 or userinstalled=0
Then when uninstalling an addon it can check it's dependencies, check what other packages on the system needs them and if no other packages needs them ask the user to uninstall auto-installed addon dependencies.
I'm sure this is easier said than done but it would be nice now that addons are requiring more and more dependencies.
Posts: 12,464
Joined: Oct 2014
Reputation:
601
2023-01-05, 17:35
(This post was last modified: 2023-01-05, 17:36 by DarrenHill. Edited 1 time in total.)
I may be remembering wrong, but I think the addon-browser already lists any orphaned dependencies that may be on your system when such exist.
That allowed them to be manually removed, so automating that could be a possible next step perhaps.
Whether it's such a good idea or not is perhaps open to question (depending on how reliable the flagging is, and also of course remembering that multiple addons may require the same dependency, so just because a given addon installed it doesn't necessarily mean that it can be removed later if that addon is removed).
As to how technically possible it may be I can't comment, as I'm not a coder. But at least some of the framework I think may already be in place.
Posts: 127
Joined: Dec 2022
2023-01-05, 19:20
(This post was last modified: 2023-01-05, 22:56 by User 476552. Edited 1 time in total.)
Maybe "auto" uninstall would be too far for Kodi.
As Kodi shows a dialog during install showing the required dependencies maybe the best option would be a dialog after uninstall showing no longer required dependencies.
Within that dialog could be a yes/no option for "Remove no longer required dependencies?"
Yes, actually writing the code is far harder than just writing a post on a forum about it.
Posts: 127
Joined: Dec 2022
Newest Kodi offers the option to remove all orphaned addons. Close enough for me.