Re: mozilla -remote won't work with some urls

Robert Waldner <[email protected]>
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
On Tue, 08 Nov 2005 12:16:11 PST, Louie Sherwin writes:
>I am running exmh on Solaris 9 and find that some urls will not
>launch new or connect to an existing mozilla. The problem always
>occurs when the uri string has one or more ampersands "&" 
>imbedded. The exec command seems to choke when it hits one.
>
>Anybody have any suggestions on how to fix this?

How exactly are you calling Mozilla?

I have "/usr/local/bin/exmh-mozilla.sh $xuri" as "Netscape Command",
 and exmh-mozilla.sh reads as follows:
.-.-.-.-.-.-.-.-.-.
#!/bin/bash

if `/usr/bin/firefox -remote "ping()" 1>/dev/null 2>/dev/null`; then
   exec /usr/bin/firefox -remote "openurl($1,new-tab)" &
  else
   /usr/bin/firefox &
   sleep 15
   exec /usr/bin/firefox -remote "openurl($1,new-tab)" &
  fi

exit
.-.-.-.-.-.-.-.-.-.

Note the quotes around the openurl[0] argument (mind, this is on
 Debian/i386), works for example with
 http://ask.slashdot.org/askslashdot/05/11/09/188256.shtml?tid=188&tid=141&tid=184&tid=4

0: the -remote options of Mozilla/Firefox are described on
   http://www.mozilla.org/unix/remote.html

cheers,
&rw
-- 
-- "Microsoft Windows has better security
-- than Linux out of the box."
--                            - Microsoft

_______________________________________________
Exmh-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-users
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDcm6AE0NzSJr53oIRAsQrAJ4/7rgyQ4Mo6nYh7r7mMzgWKksNBACfRWci
yQohedcNJJsXMbEQUlIcUH4=
=CaQY
-----END PGP SIGNATURE-----
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.