Added a "CustomPlayerPath" option for those with Classic iTunes problems.
authorKent Sutherland <ksuther@ithinksw.com>
Mon, 9 Feb 2004 02:35:37 +0000 (02:35 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Mon, 9 Feb 2004 02:35:37 +0000 (02:35 +0000)
MainController.m

index 2400f9e..0f86024 100755 (executable)
@@ -498,7 +498,12 @@ static MainController *sharedController;
     } else {
         ITDebugLog(@"Launching player.");
         NS_DURING
-            if (![[NSWorkspace sharedWorkspace] launchApplication:[[self currentRemote] playerFullName]]) {
+            NSString *path;
+            if ( (path = [df stringForKey:@"CustomPlayerPath"]) ) {
+            } else {
+                path = [[self currentRemote] playerFullName];
+            }
+            if (![[NSWorkspace sharedWorkspace] launchApplication:path]) {
                 ITDebugLog(@"Error Launching Player");
             }
         NS_HANDLER