From 220a59f77e29cf050de6586cd55add22b8dea4dd Mon Sep 17 00:00:00 2001 From: chombier <> Date: Thu, 5 Jul 2001 14:11:51 +0000 Subject: [PATCH] try ICLaunch if local application launch fails --- macssh/source/Url/url.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/macssh/source/Url/url.c b/macssh/source/Url/url.c index b7a98f5..650fee7 100755 --- a/macssh/source/Url/url.c +++ b/macssh/source/Url/url.c @@ -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; }