<br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 9:26 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<div><div class="h5"><br>
On 03/28/2013 03:58 AM, IOhannes m zmoelnig wrote:<br>
&gt; On 2013-03-27 22:06, Jonathan Wilkes wrote:<br>
&gt;<br>
&gt;&gt; I think what Hans means is that it&#39;s very simple and easy for him to<br>
&gt;&gt; maintain as the Pd-Extended guy.  Got a handy plugin for managing<br>
&gt;&gt; plugins?  Throw it in this directory.  Is it pretty stable?  He&#39;ll<br>
&gt;&gt; throw it in the distro.  Not maintaining it anymore? He can just remove<br>
&gt;&gt; it from the distro.  In none of those scenarios does Hans end up with<br>
&gt;&gt; new functionality in the core of the GUI that he is now forced to<br>
&gt;&gt; maintain or remove altogether.<br>
&gt;<br>
&gt; i&#39;m not talking about PdX. i&#39;m talking about Pd (vanilla): just like the<br>
&gt; loading of externals is managed in Pd-core, the loading of gui plugins<br>
&gt; should be managed by Pd-gui. and &quot;managing&quot; should not translate to<br>
&gt; automatically loading whatever is there. i don&#39;t think that a simple<br>
&gt; plugin manager is too complicated (and needs too much maintainance<br>
&gt; attention). what&#39;s more: if you don&#39;t like it, you can always create a<br>
&gt; pluginmanager-plugin and tell the default pluginmanager to _only_ load<br>
&gt; the new pluginmanager-plugin, which in turn can do a nicer job.<br>
&gt;<br>
&gt; the problem we are facing right now, is that a lot of gui-plguins get<br>
&gt; activated automatically, and i have no choice to disable that. at least<br>
&gt; without switching to my favourite filesystem browser, search for the<br>
&gt; offending plugin (while the documentation only mentions 2 paths where the<br>
&gt; plugins can be installed, there are really 3-4 that are always searched,<br>
&gt; not counting the paths added with &quot;-path&quot;, so where the hell should i<br>
&gt; start searching? how am i to guess that the file &quot;wurdel.tcl&quot; is really<br>
&gt; the plugin that colorizes all text light-green?) and move it out of the<br>
&gt; way (after asking my sysadmin for the root-password, since that plugin<br>
&gt; really was installed somewhere i am not allowed to change files).<br>
<br>
</div></div>&gt; an intermediate way could be: - keep the current behaviour of loading all<br>
&gt; gui-plugins - only install a _single_ guiplugin by default, that in turn<br>
&gt; loads gui-plugins from _another_ search path. - people can download a<br>
<div class="im">&gt; more sophisticated guiplugin (&quot;plugin-manager&quot;) and replace that<br>
&gt; &quot;load-all-plugins&quot; plugin. (not really ideal, as it kind of perverts the<br>
&gt; documentation, where to install plugins; also the &quot;load-all-plugins&quot; is<br>
&gt; most likely installed with root priviliges, so again i have to ask my<br>
&gt; sysadmin to replace it)<br>
&gt;<br>
</div>&gt; similar, though slightly better: - only automatically load a<br>
<div class="im">&gt; specially-named plugin (e.g. &quot;autoloaded-plugin.tcl&quot;) that handles the<br>
</div>&gt; loading of the other plugins. - ideally Pd-gui would only try to load a<br>
<div class="im">&gt; single plugin of that name (so if you have<br>
&gt; ~/pd-externals/autoloaded-plugin.tcl and<br>
&gt; /usr/local/lib/pd-externals/autoloaded-plugin.tcl and<br>
&gt; /usr/lib/pd-extended/autoloaded/plugin.tcl it will only load the one in<br>
</div>&gt; ~/pd-externals) - in case this special plugin is not available, revert to<br>
<div class="im">&gt; the default behaviour of loading all plugins in all search-paths (this<br>
&gt; would allow to have the old behaviour, but to be easily able to override<br>
&gt; this behaviour if you don&#39;t like it)<br>
&gt;<br>
&gt; all these require to modify the pd-gui. but so does any bugfix (and i&#39;m<br>
&gt; pretty sure that the solution to bugs is to fix, even if the bugfix might<br>
&gt; not see much &quot;maintenance&quot; by the original submitter afterwards)<br>
<br>
</div>How about we start with adding only the required mechanism so that people<br>
can make all sorts of plugin management plugins.  Then revisit the rest<br>
later once we have a good idea of how it should be done.  Making the plugin<br>
loader ignore a folder called DISABLED/ would make it possible to do what<br>
you describe in a regular plugin.<br>
<br>
.hc<br clear="all"></blockquote></div><br>I think the only required mechanism would be to load plugins form a list in the preferences file. This may be even simpler than the current mechanism of going through the search path.<br>

Then the management plugin would take care of discovering, enabling, disabling plugins, and updating the list.<br><br>Andrįs