Bug 301942

Summary: copying text from other app and pasting with MMB in konsole pastes different text
Product: [Applications] konsole Reporter: FiremanSam <phartshorn>
Component: copy-pasteAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: adaptee
Priority: NOR    
Version: 2.8.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description FiremanSam 2012-06-15 02:00:31 UTC
Since upgrading to Ubuntu 11.04 konsole has been ignoring the system clipboard when pasting via MMB. It pastes text that was previously selected from within a konsole window.

Reproducible: Always

Steps to Reproduce:
1. open console and type "hello world"
2. select the text using LMB
3. paste into another application's text input (ie, urlbar in chrome)
4. type some different text in the application's text input ("goodbye cruel world")
5. select the text from the other application
6. paste with MMB in in konsole.
Actual Results:  
The text "hello world" is pasted into the konsole window

Expected Results:  
The text "goodbye cruel world" should be pasted in the konsole window

Whilst searching for a solution to this problem, I have come across some pages stating that konsole does not use the "global" clipboard but rather its own. IMO, the implementation as it stands breaks some fundamental functionality that has existed in the X environment since as long as I can remember.
Comment 1 Jekyll Wu 2012-06-15 03:04:51 UTC
Thanks for reporting.

However, this report really confuses me. It does not happen for me and should not happen at all.

First, please paste the output of "konsole --version" here so that we know the exact version of your konsole. And if you are really using "Ubuntu 11.04(not typo of 12.04?)", I guess it should be something like konsole-2.6.x.  FYI, konsole code changes quite a lot between KDE SC 4.7-4.8 and 4.8-4.9, because we have fixed quite a lot of bugs and made quite a few small improvements. If you are really using konsole 2.6.x, please try konsole 2.8.x(shipped in KDE SC 4.8) to see whether your problem is still there.

Second, "I have come across some pages stating that konsole does not use the "global" clipboard but rather its own". No, that is simply not the truth. AFAIK, konsole never "has its own clipboard". Would you like to share the URL for that kind of misinformation?

Third, in the upcoming KDE SC 4.9, we add two options for controlling the semantics of copy-paste performed through mouse. See bug 183490 for more information. But that new feature should be totally unrelated with this reported problem.
Comment 2 FiremanSam 2012-06-15 03:20:08 UTC
konsole --version
Qt: 4.8.1
KDE Development Platform: 4.8.3 (4.8.3)
Konsole: 2.8.3

Sorry, 12.04 (but what's in a year)

I also cannot recall where I read the info regarding the internal buffer - some random post on the internet. But thanks for the clarification.

Some other things:
I tried copy and paste via "ctrl+c" (in chrome) and "ctrl+shift+v" (in konsole) and the behaviour is the same.

I ran klipper and cleared the clipboard history. "ctrl+v" in chrome did nothing, but ctrl+shift+v in konsole pasted the previously copied text.
Comment 3 Jekyll Wu 2012-06-15 03:39:07 UTC
Thanks for your fast feedback. However, I failed to reproduce the other things, either. I will boot into ubuntu sometime later to try to reproduce it again.
Comment 4 FiremanSam 2012-07-23 22:11:31 UTC
An update:

This doesn't appear to be an issue with konsole or KDE. It seems to be a fault in the kubuntu upgrade from 11.04.to 11.10 (and then through to 12.04). I have confirmed this by performing upgrades from 11.04 to 11.10 and 12.04 which results in the issue described above. I don't know what had changed between 11.04 and 11.10 but it appears that some older packages have remained (for example, I get update notifications by two kde applications).

I have also tested on a clean install of 12.04 and the issue did not occur.

So I guess this can be closed.