Re: Replacing one plugin with another

erland <erland.a9p6bz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
If my interpretation of the code is correct the key is the
“plugin.extensions” preferences. You should be able to set
“plugin.extensions.<your plugin>“ to “needs-uninstall” and it should
uninstall at next restart.
https://github.com/Logitech/slimserver/blob/55f8e3f3d584baf6a3979a13fd23c7ef8e845d59/Slim/Utils/PluginManager.pm#L104
Look at the prefs file to see what <your plugin> should be.

Of course, modifying other plugins properties like this could be a bit
risky and might break at any time.

To trigger a server restart automatically is even more risky as it
aborts any operation in progress, but if you still like to go that route
you can see how LMS handles it after you have selected to
install/uninstall plugins via web interface here:
https://github.com/Logitech/slimserver/blob/4822763775465d0a39fff1dee0d4e9766b9d2375/Slim/Web/Settings/Server/Plugins.pm#L67

Michael is likely going to spot this thread and give you a better
suggestion.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
Developer of 'many plugins/applets'
(https://wiki.slimdevices.com/index.php/User_Erland.html)
*Starting with LMS 8.0 I no longer support my plugins/applets* ('see
here for more information'
(https://forums.slimdevices.com/showthread.php?49483-Announce-New-versions-of-erlands-plugins&p=998836&viewfull=1#post998836)
)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=115282

_______________________________________________
developers mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.