Mirror von
https://github.com/microtherion/VocalEasel.git
synchronisiert 2025-05-15 17:24:30 +00:00
Look for running copy of Lilypond.app
Dieser Commit ist enthalten in:
Ursprung
f612e5cb38
Commit
f55a6e1ab3
@ -129,11 +129,23 @@
|
|||||||
else
|
else
|
||||||
appPath = lilyPath;
|
appPath = lilyPath;
|
||||||
}
|
}
|
||||||
if (!appPath)
|
if (!appPath) {
|
||||||
appPath =
|
//
|
||||||
[[[NSWorkspace sharedWorkspace]
|
// Look for running copies of Lilypond first
|
||||||
absolutePathForAppBundleWithIdentifier:@"org.lilypond.lilypond"]
|
//
|
||||||
stringByAppendingPathComponent:@"Contents/Resources/bin/lilypond"];
|
NSArray * runningApps = [[NSWorkspace sharedWorkspace] launchedApplications];
|
||||||
|
for (NSDictionary * app in runningApps)
|
||||||
|
if ([[app objectForKey:@"NSApplicationBundleIdentifier"] isEqual:@"org.lilypond.lilypond"]
|
||||||
|
|| [[app objectForKey:@"NSApplicationName"] isEqual:@"LilyPond"]
|
||||||
|
)
|
||||||
|
if ((appPath = [[app objectForKey:@"NSApplicationPath"] stringByAppendingPathComponent:@"Contents/Resources/bin/lilypond"]))
|
||||||
|
break;
|
||||||
|
if (!appPath)
|
||||||
|
appPath =
|
||||||
|
[[[NSWorkspace sharedWorkspace]
|
||||||
|
absolutePathForAppBundleWithIdentifier:@"org.lilypond.lilypond"]
|
||||||
|
stringByAppendingPathComponent:@"Contents/Resources/bin/lilypond"];
|
||||||
|
}
|
||||||
if (!toolPath)
|
if (!toolPath)
|
||||||
toolPath = [self getLineFromCommand:@"bash -l -c 'which lilypond'"];
|
toolPath = [self getLineFromCommand:@"bash -l -c 'which lilypond'"];
|
||||||
|
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren