Hi all,
I'm trying to create a Kodi Addon which is an application which binaries have some direct references to files located on the /usr folder, for example:
-The original application wants to play a wav file which on an Ubuntu distribution is located at "/usr/share/appname/myfile.wav".
-Looking into the app's code, I can see something like audio.play(DATADIR + "/myfile.wav") and the DATADIR variable can be customized when configuring the build (default value is "/usr/local/appname").
And there's the question: I want to add this myfile.wav to the addon, for example on a folder called audio, so the final location would be "$ADDON_FOLDER_PATH/audio/myfile.wav".
I supose the only way to make this work is by telling the configure command "DATADIR=/storage/.kodi/addons/appname". However, this seems wrong. If I make this, the addon would only run on LibreELEC and if it's located at ~/.kodi/addons (it won't work, for example, if I decided to make a LibreELEC build with this addon added to the base image).
Is there any way to solve this issue, or I have to work with these limitations?
Thanks in advance!