mamburu: Prevent starting Last.fm if Last.fm 2.x.x is already running
parent
078caa7980
commit
5091d13fcb
|
@ -78,7 +78,8 @@ escapeForLastFM(NSString *string)
|
||||||
NSArray *launchedApps = [[NSWorkspace sharedWorkspace] runningApplications];
|
NSArray *launchedApps = [[NSWorkspace sharedWorkspace] runningApplications];
|
||||||
BOOL running = NO;
|
BOOL running = NO;
|
||||||
for(NSRunningApplication *app in launchedApps) {
|
for(NSRunningApplication *app in launchedApps) {
|
||||||
if([[app bundleIdentifier] isEqualToString:@"fm.last.Last.fm"]) {
|
if([[app bundleIdentifier] isEqualToString:@"fm.last.Last.fm"] ||
|
||||||
|
[[app bundleIdentifier] isEqualToString:@"fm.last.Scrobbler"]) {
|
||||||
running = YES;
|
running = YES;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue