Phoenix and -remote with Gnome/Evo

Discussion of general topics about Seamonkey
Post Reply
schussat
Posts: 8
Joined: November 8th, 2002, 8:58 am

Phoenix and -remote with Gnome/Evo

Post by schussat »

I've been trying to get Evolution to open URLs in new tabs within Phoenix, but am not having any success. I've modified the http-show URL Handler to:

Code: Select all

http-show=phoenix -remote openurl(%s,new-tab)


A new tab is opened, but instead of loading the URL in the %s variable, I get a google search for "%s" (which happens to be the FSF web site). I've tried escaping the %s in the command line, quoting the variable, and so forth, but no luck. Does anyone have this function working? I think I'm following the syntax properly, but for some reason the variable isn't being passed -- or isn't being interpreted by Phoenix properly. I'd appreciate any help.

Thanks-
-Alan
User avatar
Kommet
Posts: 112
Joined: November 5th, 2002, 1:15 pm
Location: San Jose, CA

Maybe some help?

Post by Kommet »

Phoenix questions should be in the Phoenix forums, but as this revolves around a Mozilla function I'll let you slide. ;-)

Per this article it seems that the openURL function just grabs its arguments as literal strings. I don't see support indicated for passing variables as arguments.

However, after googling around I found out that people were putting quotes around the openURL function, and escaping the quotes to drop in the variable. Try one of the following:

Code: Select all

http-show=phoenix -remote "openurl("%s",newtab)"

or

Code: Select all

http-show=phoenix -remote 'openurl('$1',newtab)'

I can't guarantee anything, but escaping the quotes to drop in the variable seemed to be the missing step.
Post Reply