1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Linux: Fix retrieving SpecialLocationType::currentApplicationFile

This commit is contained in:
attila 2022-07-28 17:17:00 +02:00 committed by Attila Szarvas
parent cc8ce6525a
commit cc5b9a3306

View file

@ -145,11 +145,10 @@ File File::getSpecialLocation (const SpecialLocationType type)
case currentExecutableFile:
case currentApplicationFile:
#if ! JUCE_STANDALONE_APPLICATION
return juce_getExecutableFile();
#endif
// deliberate fall-through if this is not a shared-library
JUCE_FALLTHROUGH
{
const auto f = juce_getExecutableFile();
return f.isSymbolicLink() ? f.getLinkedTarget() : f;
}
case hostApplicationPath:
{