Replacing one plugin with another
Paul Webster <Paul.Webster.a9o9k0-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
I am working through ideas for how I can make a new plugin of mine replace a number of my old ones within an existing installation. i.e. if the end-user installs my plugin Z after already installing and using plugin X and plugin Y (etc) then X and Y should stop functioning (because I know that Z does everything that X and Y do). I could make a new version of X and Y to do something to help ... but I can't be certain that the end-user will install it (although it is probably reasonable to assume that if the end-user installs my plugin Z then they probably would let X and Y upgrade as well). The order that plugins are started by LMS is not documented (although I think it is alphabetical) but I don't really want a mechanism that relies on that and I don't really want to call my Z plugin AAAZ. If someone uninstalls a plugin the prefs are left in place so I cannot use the presence of prefs as being proof that a plugin is installed. I would like it to be done no later than the plugin actions the initPlugin call because the plugins call registerParser and registerProvider and this might cause issues with more than one plugin trying to run off the same regex matches (I have not tried). If it can all be done in the new plugin Z then that is great because I would not have to update X and Y. I suspect that it could be possible for plugin Z to clear clear the plugin-enabled flag for X and Y ... but what happens if X or Y has already been started up by LMS? Any ideas? Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland and, via the extra \"radio now playing\" plugin, allzic radio, caroline flashback, cesky rozhlas, frequence3, jukeradio, klassikradio.de, linn radio, mother earth, naim radio, nova.fr, radioblues flac, radio espace, somehow jazz ------------------------------------------------------------------------ Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=115282