@pitaj said in Plugin activation depending on system:
hmmm... well ideally plugins and core would only load their assets when necessary. For instance, in core, we only load jQuery UI if we have some jQuery UI thing. There are many other places where we could pull more code out to be on-demand.
you mean ideally but not on reality, right?
my idea was for example to enable plugins like...
-people viewing this topic, reactions, polls, etc only on desktop
As plugin I'd like to be able to either get a list of activated plugins (maybe also version) or to send a request whether there is an activated plugin of given name (If you're aware of security issues )
I think you can call Plugins.isActive to see if a specific plugin is activated. Otherwise you can query db.getSetMembers('plugins:active', callback) for the actual list