Bug 90788 - klipper fails to expand %s to the clipboard contents after RHSA-2003:002 is applied
Summary: klipper fails to expand %s to the clipboard contents after RHSA-2003:002 is a...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kdebase
Version: 8.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-13 19:25 UTC by Need Real Name
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-05-14 16:16:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2003-05-13 19:25:36 UTC
Description of problem:

After applying the updates for RH8 specified in errata RHSA-2003:002, klipper
fails to expand %s to the clipboard contents. 

Version-Release number of selected component (if applicable):

kdebase-3.0.5a-4

How reproducible:

100%, this did not occur prior to the update of kdebase that occured with
RHSA-2003:002

Steps to Reproduce:
1. Setup a klipper action that looks like '^http[s]?:\/\/' which calls 'mozilla
"%s"'
2. Highlight a URL and choose "Open with Mozilla"
3. mozilla will attempt to open the literal '%s' as a URL.
    
Actual results:

The literal '%s' is opened as the URL in mozilla

Expected results:

klipper should substitute the url for %s and mozilla should open that.

Additional info:

Prior to the update of kdebase this action worked without problems. Note this
fails in the same way with other actions that open other apps. It is not limited
to mozilla.

I've marked this as severity high since it serious impacts the usefulness of KDE

Comment 1 Than Ngo 2003-05-14 16:16:27 UTC
hmm i think this bug was in RHL 8.0 too. It's not fixed in this errata.

I have fixed it in kde-3.1.2, which will be available in rawhide soon.

To fix this problem you have to change the lines in /usr/share/config/klipperrc

Commandline=ps x |grep -q '[m]ozilla' && mozilla -remote "openURL(%s,
new-window)" || mozilla %s

to

Commandline=ps x |grep -q '[m]ozilla' && mozilla -remote "openURL(`echo %s`,
new-window)" || mozilla %s

and 
Commandline=mozilla -remote "openURL(%s, new-window)"
to
Commandline=mozilla -remote "openURL(`echo %s`, new-window)"


Comment 2 danf 2003-05-26 20:54:48 UTC
This problem also affects the security update for Red Hat 7.2 (kdebase-2.2.2-7).
Will an updated package for KDE 2.2 be made available as well?


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