Bug 56008 - klipper can't start actions
Summary: klipper can't start actions
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kdebase   
(Show other bugs)
Version: 7.2
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2001-11-10 14:25 UTC by Chris Ricker
Modified: 2007-04-18 16:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-11-27 17:48:15 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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)"
	mozilla %s

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!

Note You need to log in before you can comment on or make changes to this bug.