Skip to content
Snippets Groups Projects
  1. Sep 26, 2017
    • Jonathan Wilkes's avatar
      get the "-unique" flag and [pd~] object working in Purr Data · a147dfbb
      Jonathan Wilkes authored
      This patch makes it possible to have multiple running instances of Purr Data,
      and to leverage that interface from Pd-l2ork to get [pd~] working on all
      platforms
      
      Some difficulties required revisions to [pd~] in Pd Vanilla's code
      * use quoted path args for Windows when starting the [pd~] subprocess
      * replace sys_havegui() from Pd Vanilla's recent "threadening" with sys_nogui
      
      The "-unique" flag requires the OSX app bundle to be able to start by calling
      the binary in Pd-l2ork.app/Contents/Resources/app.nw/bin/pd-l2ork. This should
      also make it possible to run Purr Data on OSX both by using an app bundle
      (where the GUI starts the Pd process) and by installing and running from the
      command line (where the Pd process starts the GUI)
      
      The "--user-data-dir" flag sets the directory for various nw.js state used
      by a running instance. To prevent races nw.js requires that each running
      instance have its own directory that is not shared with any other instances.
      
      Setting the value for this flag has two important potential side-effects:
      
      1. If you have a running instance and try to start an additional instance
         that has the same data directory, nw.js will just send an "open" event
         the first running instance and exit the 2nd instance gracefully. This is
         the default nw.js behavior and the default Pd-l2ork behavior as well.
      2. If you have a running instance and try to start an additional instance
         with a different data directory than the first, you'll get a fully
         functional 2nd instance of nw.js running. This is the behavior we desire
         when the user runs pd-l2ork with the "-unique" flag.
      
      In each case we set the data dir explicitly in order to get consistent
      positional command line arguments in the GUI.
      
      In normal mode Purr Data will use the default data dir as specified in the
      nw.js docs for the particular platorm. Since the same default dir is used
      each time Purr Data is run, there will be only one data dir that gets created.
      
      When run with the "-unique" flag, Purr Data will append "-$portno" to the
      default data directory, where $portno is the port Pd chose to communicate
      with the GUI. That ensures that each separate instance of Purr Data can
      get a unique data dir.
      
      A side effect is that users may end up generating multiple data dirs that
      don't get deleted on exit. But Pd starts searching for available ports in the
      same range each time, and unless the user tries to run hundreds of instances
      at once this directory spam shouldn't be too big of a problem.
      a147dfbb
  2. Jan 29, 2017
  3. Jan 26, 2017
  4. Jan 20, 2017
  5. Nov 09, 2016
  6. Oct 25, 2016
  7. Sep 15, 2016
  8. Sep 08, 2016
  9. Jun 03, 2016
  10. Mar 19, 2016
  11. Feb 21, 2016
  12. Feb 12, 2016
  13. Jan 25, 2016
  14. Dec 11, 2015
    • Jonathan Wilkes's avatar
      port from Pd-l2ork: 7066e0d3495b16491b642373dfd030e916bfe309 · 71cad3e0
      Jonathan Wilkes authored
       *added legacy option for iemgui objects. Starting pd-l2ork with -lega…
      
      …cy flag positions iemgui objects in their old, vertically inconsistent locations for the sake of retaining complete backwards compatibility.
      
      *added sys_legacy global for inclusion of other potential legacy breakages that may develop later.
      71cad3e0
  15. Nov 04, 2015
  16. Sep 06, 2015
  17. Feb 13, 2015
  18. Oct 07, 2014
  19. Sep 01, 2014
    • Ivica Bukvic's avatar
      *fixed segfault at start-up due to faulty allocation of the string length for... · 0b96f889
      Ivica Bukvic authored
      *fixed segfault at start-up due to faulty allocation of the string length for checking for unique instance of pd-l2ork
      *made unique check in pd.tk more robust in respect to relative paths and multiple files by making sure that the script always goes back to the original directory from which it was invoked, so as to ensure that the path (if relative) is valid
      0b96f889
  20. Aug 30, 2014
  21. Aug 29, 2014
  22. Aug 15, 2014
  23. Aug 02, 2014
  24. Jul 30, 2014
  25. Jul 23, 2014
  26. Jun 29, 2014
  27. Jun 17, 2014
  28. Jun 09, 2014
  29. Jun 08, 2014
  30. May 24, 2014
  31. Sep 18, 2013
  32. Sep 10, 2013
  33. May 23, 2013
  34. Jan 26, 2013
Loading