[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-bugs
Subject: [haiku-bugs] Re: [Haiku] #17503: /boot/home/config/non-packaged/data/synth not seen by InternalMIDI
From: "Haiku" <trac () haiku-os ! org>
Date: 2021-12-27 13:29:13
Message-ID: 057.490026ae15daa7f696c113388a9cdab8 () haiku-os ! org
[Download RAW message or body]
--===============3941933876215679262==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
#17503: /boot/home/config/non-packaged/data/synth not seen by InternalMIDI
------------------------+-------------------------
Reporter: CDavis | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/beta3
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
------------------------+-------------------------
Comment (by humdinger):
This seems to be an issue with InternalMidi. It uses find_directory()
looking for B_SYNTH_DIRECTORY:
https://github.com/HaikuArchives/InternalMIDI/blob/master/source/Prefs.cpp=
#L30
:
{{{
find_directory(B_SYNTH_DIRECTORY, &fSynthDirectory );
fSynthDirectory.SetTo( fSynthDirectory.Path(), "synth" );
}}}
B_SYNTH_DIRECTORY isn't defined as "official location" in the
FindDirectory header, but in MidiDefs.h as B_SYSTEM_DATA_DIRECTORY.
Therefore InternalMidi will only find synths from a package which will
appear in /system/data/synth (when installed in the system hierarchy).
InternalMidi should use BPathFinder to look through all possible
locations, I suppose.
-- =
Ticket URL: <https://dev.haiku-os.org/ticket/17503#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.
--===============3941933876215679262==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic