#510 conditional auto-loading of all gui-plugins

bugfix
open
puredata (385)
5
2013-03-28
2013-03-28
No

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

Discussion

  • IOhannes m zmölnig

    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).

     
  • Hans-Christoph Steiner

    This is an interesting idea, but I'm not sure if its the best approach. I still think just ignoring folders called 'DISABLED' in any search path is more true to how the GUI plugins work because the mechanism for managing plugins will be the same whether its thru a GUI plugin or via file management, as it currently works.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks