[PD-dev] [ pure-data-Patches-3609351 ] conditional auto-loading of all gui-plugins

SourceForge.net noreply at sourceforge.net
Thu Mar 28 13:20:13 CET 2013


Patches item #3609351, was opened at 2013-03-28 04:52
Message generated for change (Comment added) made by zmoelnig
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3609351&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: bugfix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: IOhannes m zmölnig (zmoelnig)
Assigned to: Miller Puckette (millerpuckette)
Summary: conditional auto-loading of all gui-plugins

Initial Comment:
currently Pd-GUI tries to load all gui-plugins it can find in any of the search-paths.
this can be rather annoying as it allows neither to select which plugins should (not) be loaded nor in which order the plugins should be loaded (a problem if the two plugins modify the same property).
a single solution proposed on the pd-list [1], is to define a specially named plugin, that - if present - is the only plugin loaded (if the plugin is not there, the original behaviour of loading all plugins is kept)

this specially named plugin can then implement a "plugin manager", that allows to selectively load plugins (potentially in a defined order).

the attached patch does just this: it searches for a file named "autoloaded-plugin.tcl" in the gui-plugins search path and loads it if possible, instead of loading ALL plugins.



[1] http://lists.puredata.info/pipermail/pd-dev/2013-03/019346.html

----------------------------------------------------------------------

>Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2013-03-28 05:20

Message:
since this patch has a light dependency on #3609350 ("prevent recursive
loading of gui-plugins") the latter is added here as well.

reason: we only want to stop loading ALL patches if the
autoloaded-plugin.tcl actually succeeds in loading. this is checked through
the return value of load_plugin_script (introduced in  #3609350).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3609351&group_id=55736



More information about the Pd-dev mailing list