On Mon, Aug 25, 2014 at 10:09:14PM -0700, Yourself wrote: > On Sun, Aug 24, 2014 at 10:38:14PM -0700, Pete Goodeve wrote: > > suggest something like the following: > > > > The package can put the default font where it is now, but big_synth.sy > > should link to, say, /boot/system/settings/synth/system.sf2, which in > > turn by default links back to the font in /boot/system/data/synth. > > > > OK -- that doesn't work... (:-() > > I set up a package as I described, (using a work folder with the desired > tree structure), intending to place a link in /boot/system/settings/synth, > but that folder is not created by package installation. > > Here's a list of the package: > > package-attributes: > name: timgmsoundfont > summary: A good quality General Midi Soundfont > description: A good quality General Midi Soundfont. > vendor: Haiku Project > packager: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx> > architecture: any > version: 2012_11_1-5 > copyright: 2004 Tim Brechbill > license: Public Domain > URL: http://ocmnet.com/saxguru/Timidity.htm > source URL: > provides: timgmsoundfont = 2012_11_1 (compatible >= 0) > data 0 2014-08-24 18:52:07 drwxr-xr-x > synth 0 2014-08-25 21:58:31 drwxr-xr-x > Installing alternative sound fonts 386 2013-06-17 18:49:02 > -rw-r--r-- > TimGM6mb.sf2 5996892 2011-12-11 16:55:47 -rw-r--r-- > big_synth.sy 0 2014-08-25 21:58:31 lrwxrwxrwx > -> ../../settings/synth/system.sf2 > settings 0 2014-08-25 21:06:07 drwxr-xr-x > synth 0 2014-08-25 21:56:53 drwxr-xr-x > system.sf2 0 2014-08-25 21:56:53 lrwxrwxrwx > -> ../../data/synth/TimGM6mb.sf2 > .PackageInfo 435 2014-08-25 21:04:36 -rw-r--r-- > > So what am I missing? Can't the PM system put stuff in settings? > Something must be able to, because there's a lot of default stuff there. Not directly. The package must declare which files it's going to publish in the settings folder, and tell the system what to do when the package is updated (keep the existing files, replace with new ones from the package). This is done with the global_writable_files in the package header. Also, I think we should remove the "Installing alternative sound fonts" from there and move that to the Haiku User Guide. And for better integration, we could maybe add a Midi tab in the Media preflet allowing to easily switch soundfonts? -- Adrien.