mamburu: Prevent starting Last.fm if Last.fm 2.x.x is already running

CQTexperiment
Chris Moeller 2013-10-12 14:43:46 -07:00
parent 078caa7980
commit 5091d13fcb
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ escapeForLastFM(NSString *string)
NSArray *launchedApps = [[NSWorkspace sharedWorkspace] runningApplications];
BOOL running = NO;
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;
break;
}