Re: Komodo can't access Safari or Firefox
"Eric Robertson" <[email protected]>
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <755E4EB5CC7B451B985260D7710C5034@Time> |
>-----Original Message----- >From: Trent Mick [mailto:[email protected]] >Sent: Thursday, February 19, 2009 5:59 PM >To: Eric Robertson >Cc: [email protected] >Subject: Re: [Komodo-discuss] Komodo can't access Safari or Firefox > >>> 2. Can you add the following debugging print to koWebbrowser.py in your >>> Komodo and retry: >>> >>>> Index: C:\trentm\as\komodo\src\components\koWebbrowser.py >>>> =================================================================== >>>> --- koWebbrowser.py (revision 26548) >>>> +++ koWebbrowser.py (working copy) >>>> @@ -26,20 +26,21 @@ >>>> >>>> >>>> class KoWebbrowser(object): >>>> _com_interfaces_ = [components.interfaces.koIWebbrowser] >>>> _reg_clsid_ = "{7B361CD6-4426-4d23-86D6-B6F8E0FCDA20}" >>>> _reg_contractid_ = "@activestate.com/koWebbrowser;1" >>>> _reg_desc_ = "Komodo Default Webbrowser Service" >>>> >>>> def _spawn(self, command): >>>> """Spawn the given command (or argv) and return true iff >>> successful""" >>>> + print "XXX koWebbrowser._spawn(command=%r)" % (command,) >>>> try: >>>> env = koprocessutils.getUserEnv() >>>> except ServerException, ex: >>>> log.error(str(ex)) >>>> return 1 >>>> try: >>>> process.ProcessOpen(command, env=env, stdin=None, >>> stdout=None, >>>> stderr=None) >>>> return 1 >>>> except process.ProcessError, ex: >>> >>> Then look for that output in the log? >>> >>> What I expect it to show is that a command something like: >>> >>> ["open", "-a", "/Applications/Firefox.app", "... escaped URL ..."] >>> > >> >> 2. I made the change you suggested to koWebbrowser.py after having >located >> it on my Mac. I'm attaching the part of the error log that appears when I >> set Firefox as my browser and then try to access the ActiveState website >> from the Help menu. Hope this gives you what you want although I don't >see >> what you were expecting. > >Eric, > >That "print" output would have appeared in pystdout.log, could you >attach that file? > >Thanks, >Trent Trent Sorry for the delay in replying - I'm just back from holiday. I started up Komodo, with Safari set as the default browser, tried to access the ActiveState website from the Help menu, getting the error message, and then closed down Komodo. I'm attaching the pystdout.log file that contains the line that you were expecting. Hope that helps explain what the problem is! Eric R. _______________________________________________ Komodo-discuss mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
pystdout.log
(application/octet-stream, 109 B)
XXX koWebbrowser._spawn(command=['open', '-a', u'/Applications/Firefox.app', 'http://www.ActiveState.com/'])