Re: Komodo can't access Safari or Firefox

Trent Mick <[email protected]>
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
Eric Robertson wrote:
> I have Komodo 5.0.3 currently installed on my Mac but I can't get it to
> access either of my two browsers. In Preferences it gives me the option of
> choosing /Applications/Firefox.app or /Applications/Safari.app but
> regardless of which one I pick when I try to use any of the entries in the
> Help menu that require a browser I get the message, for example, "Could not
> open the browser at /Applications/Firefox.app" which is very annoying. I'm
> sending this message from my Windows PC.
> 
> For another application I found that since /Applications/Firefox.app is just
> a package in the Mac that holds the executable I had to use the actual
> location of the Firefox application for it to be able to access the browser.
> I tried the same for Komodo but this too didn't work.
> 
> This problem has been with me for some time now - I think that all of the
> earlier versions of Komodo have had this problem. I posted a message on this
> list some time ago about this but have not had an answer. I'd be very
> grateful if someone could explain why this is not working and how I correct
> this.

I can't repro this, but a couple things to try:

1. Does it work with this setting in the "Web & Browser" prefs panel?
     Which browser should Komodo use whenopening URLs?
     [ Ask when browser is launched the next time ]

Note that the label for that setting is bogus for Mac OS X. On the Mac 
what that setting means is closer to "open in the default browser". Read 
on for details.


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 ..."]



Trent

-- 
Trent Mick
trentm at activestate.com
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.