Bug 56008

Summary: klipper can't start actions
Product: [Retired] Red Hat Linux Reporter: Chris Ricker <chris.ricker>
Component: kdebaseAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-27 17:48:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Ricker 2001-11-10 14:25:32 UTC
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.

Comment 1 Bernhard Rosenkraenzer 2001-11-27 17:18:41 UTC
Verified. Didn't notice (why would anyone use Mozilla if you can have 
Konqueror? ;) )


Comment 2 Bernhard Rosenkraenzer 2001-11-27 17:21:28 UTC
Ok, this is caused by mozilla refusing to create a new window when invoked with

mozilla -remote 'openURL(http://slashdot.org/, new-window)'

...



Comment 3 Bernhard Rosenkraenzer 2001-11-27 17:31:50 UTC
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.


Comment 4 Chris Ricker 2001-11-27 17:48:07 UTC
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.

Comment 5 Chris Ricker 2002-08-30 18:44:42 UTC
This actually works for me with the latest rawhide kdebase and mozilla!  Thanks!