Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:bespokesynth
bespokesynth-nightly
relative-path-for-appimage.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File relative-path-for-appimage.patch of Package bespokesynth-nightly
diff --git a/Source/OpenFrameworksPort.cpp b/Source/OpenFrameworksPort.cpp index 24ce3d25..481d548f 100644 --- a/Source/OpenFrameworksPort.cpp +++ b/Source/OpenFrameworksPort.cpp @@ -89,12 +89,14 @@ std::string ofToFactoryPath(const std::string& subdir) #else auto resDir = juce::File::getSpecialLocation(juce::File::SpecialLocationType::currentExecutableFile).getSiblingFile(subdir); #if BESPOKE_LINUX - if (!resDir.isDirectory()) + if (getenv("APPIMAGE") != NULL) { - resDir = juce::File::getSpecialLocation(juce::File::SpecialLocationType::currentApplicationFile).getChildFile("../../share/BespokeSynth").getChildFile(subdir); - if (!resDir.isDirectory()) - resDir = juce::File{ juce::CharPointer_UTF8{ Bespoke::CMAKE_INSTALL_PREFIX } }.getChildFile("share/BespokeSynth").getChildFile(subdir); + result = "././share/BespokeSynth/" + subdir; + return result; } + + if (!resDir.isDirectory()) + resDir = juce::File{ juce::CharPointer_UTF8{ Bespoke::CMAKE_INSTALL_PREFIX } }.getChildFile("share/BespokeSynth").getChildFile(subdir); #endif #endif if (!resDir.isDirectory())
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor