Skip to content

Commit

Permalink
Use JUCE to resolve the executable file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schlemmer committed Feb 11, 2021
1 parent 7c9995d commit a3a2e89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Native/CtrlrLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ const Result CtrlrLinux::getDefaultPanel(MemoryBlock& dataToWrite)
temp.loadFileAsData (dataToWrite);
return (Result::ok());
#endif
libr_file *handle = libr_open (nullptr, LIBR_READ);
libr_file *handle = libr_open ( File::getSpecialLocation(File::hostApplicationPath).getFullPathName().toUTF8().getAddress(),
LIBR_READ);

if (handle == nullptr)
{
Expand Down Expand Up @@ -191,7 +192,8 @@ const Result CtrlrLinux::getDefaultResources(MemoryBlock& dataToWrite)
}
#endif

libr_file *handle = libr_open (nullptr, LIBR_READ);
libr_file *handle = libr_open (File::getSpecialLocation(File::hostApplicationPath).getFullPathName().toUTF8().getAddress(),
LIBR_READ);

if (handle == nullptr)
{
Expand Down Expand Up @@ -224,7 +226,7 @@ const Result CtrlrLinux::getDefaultResources(MemoryBlock& dataToWrite)

const Result CtrlrLinux::getSignature(MemoryBlock &dataToWrite)
{
libr_file *handle = libr_open (nullptr, LIBR_READ);
libr_file *handle = libr_open (File::getSpecialLocation(File::hostApplicationPath).getFullPathName().toUTF8().getAddress(), LIBR_READ);

if (handle == nullptr)
{
Expand Down

0 comments on commit a3a2e89

Please sign in to comment.