mirror of https://github.com/macssh/macssh.git
try ICLaunch if local application launch fails
This commit is contained in:
parent
9b909a889c
commit
220a59f77e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue