GNOME Bugzilla – Bug 724013
Don't hardcode /usr/share/sounds/sf2 path in fluiddec
Last modified: 2014-02-10 11:44:03 UTC
Currently fluiddec looks for sf2 files in /usr/share/sounds/sf2. This by itself isn't wrong (this is the place where stuff is put by distros that i know (that is, Debian)). However, this path makes no sense on W32. To fix this i'm proposing to use glib to get system shared data dirs (glib will return multiple directories most of the time), and use that to locate sf2 files.
Created attachment 268651 [details] [review] Change soundfont file search path for fluiddec This works on Windows (finds .sf2 file in <mingwwroot>/share/sounds/sf2). Didn't test it anywhere else.
commit 270b57fc33301f37511200e468b7ef51fdc5e672 Author: Руслан Ижбулатов <lrn1986@gmail.com> Date: Mon Feb 10 08:19:52 2014 +0000 Change soundfont file search path for fluiddec Use glib to get a list of system "share" directories, then go through that list, appending 'sounds/sf2/' to each directory to get a soundfont directory, and looking for .sf2 files there. This way fluiddec is able to load sf2 files on W32, because otherwise the path '/usr/share/sounds/sf2' makes no sense there. Fixes #724013