klipper (KDE clipboard thingie) has a nice feature where it can apply actions to text on the clipboard: open URLs in a web browser, display images with kview, etc. Unfortunately, at least for Mozilla URL action, klipper can't actually *start* mozilla. If mozilla is already running on the system, then klipper will work; it will spawn an additional mozilla window, and display the URL in the window. If mozilla is not running at all on the system, however, then klipper will refuse to display URLs using mozilla.
Verified. Didn't notice (why would anyone use Mozilla if you can have Konqueror? ;) )
Ok, this is caused by mozilla refusing to create a new window when invoked with mozilla -remote 'openURL(http://slashdot.org/, new-window)' ...
The fix isn't simple: You'd have to do something along the lines of if [ -n "`/sbin/pidof mozilla`" ]; then mozilla -remote "openURL(%s,new-window)" else mozilla %s fi which in turn won't be expanded correctly because %s doesn't expand twice in a printf string. Experimenting with workarounds; the real fix would break compatibility with klipperrc from earlier versions.
Well, *I* use mozilla 'cause konqueror sucks ;-) Seriously, this same problem probably applies to netscape as well (haven't checked, as I don't use netscape now that mozilla works with all the sites I need). The basic problem with mozilla is that it's doing the -remote stuff, which is a protocol inherited from netscape, and the way -remote works is that it passes commands to an already running browser (netscape used to have a white paper on it, though I have no idea where to find it these days). I'm not currently at a machine where I can check, though.
This actually works for me with the latest rawhide kdebase and mozilla! Thanks!