Index: XBMCController.m =================================================================== --- XBMCController.m (revision 179) +++ XBMCController.m (working copy) @@ -281,6 +281,13 @@ selector:@selector(checkTaskStatus:) name:NSTaskDidTerminateNotification object:mp_task]; + + // Bring XBMC to the front + ProcessSerialNumber psn; + OSErr err; + if(!(err = GetProcessForPID([mp_task processIdentifier], &psn))) { + SetFrontProcess(&psn); + } } - (void) willBePopped