try ICLaunch if local application launch fails

This commit is contained in:
chombier 2001-07-05 14:11:51 +00:00
parent 9b909a889c
commit 220a59f77e
1 changed files with 7 additions and 0 deletions

View File

@ -157,6 +157,13 @@ static Boolean LaunchURL(Handle urlH, short w)
kCoreEventClass, kAEOpenApplication,
keyDirectObject, "\p", 0, launchControlFlags);
}
if ( err != noErr ) {
/* try using IC */
fakeSelBegin = 0;
fakeSelEnd = returnedSize;
ICFindConfigFile(inst, 0, 0);
err = ICLaunchURL(inst, aligned_pstring("\p"), *urlH, returnedSize, &fakeSelBegin, &fakeSelEnd);
}
}
return err == noErr;
}