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:
parent
cc8ce6525a
commit
cc5b9a3306
1 changed files with 4 additions and 5 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue