Bug 345326

Summary: Basic cut & paste operation is broken
Product: [Applications] dolphin Reporter: Alexander Nestorov <alexandernst>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: major CC: alexandernst, arjunak234, edoantonioco, emmanuelpescosta099, emrecio
Priority: NOR    
Version: 4.14.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Nestorov 2015-03-19 09:29:20 UTC
The very basic form of cut & paste is broken (as in, it doesn't work).
Steps to reproduce the problem:

1. Open Dolphin
2. Select a file and hit "Ctrl + x" (or right-click -> cut)
3. Close Dolphin
4. Open another Dolphin instance
5. Try to hit "Ctrl + v" (or right-click -> paste).

Nothing will happen. The files are still in the clipboard, but Dolphin just won't accept them and won't let you paste them.

Reproducible: Always
Comment 1 Emmanuel Pescosta 2015-03-19 20:11:47 UTC
Can't reproduce it here, also Arch Linux but with Dolpin 14.12.3 and Plasma 5.2 (new Klipper).

Which Plasma/Klipper version do you use?
Is it also reproducible in the open/save dialog (e.g. in Kate)?
Comment 2 Alexander Nestorov 2015-03-19 20:55:26 UTC
I'm on ... KDE 5 ... Plasma... something... it's really hard to say with that messed versioning scheme.

Dolphin is 14.12.3
In the "About" dialog I also see KDE 4.14.6, which I have no idea where it comes from, because I'm clearly using Plasma from KDE5.

Are you sure you're following the steps I wrote?

Just to be sure, close everything. Open 1 Dolphin instance. Cut 1 file. Close Dolphin (close it! It's important). Open a new Dolphin instance and try to paste the file.
Comment 3 Emmanuel Pescosta 2015-03-20 07:55:17 UTC
(In reply to Alexander Nestorov from comment #2)
> In the "About" dialog I also see KDE 4.14.6, which I have no idea where it
> comes from, because I'm clearly using Plasma from KDE5.

kdelibs4

> Are you sure you're following the steps I wrote?
> Just to be sure, close everything. Open 1 Dolphin instance. Cut 1 file.
> Close Dolphin (close it! It's important). Open a new Dolphin instance and
> try to paste the file.

Oh sorry (!!), I have completely overseen the "Close the original Dolphin instance" :/
Also reproducible here!
Comment 4 Emmanuel Pescosta 2015-03-20 08:05:03 UTC
Can you please try if you can reproduce it with other applications as well?

e.g. when I write something in KWrite, copy it, close KWrite and open a new instance, try to paste it, the wrong text is pasted (some old text from the Klipper history). Also Klipper freezes on Strg+C ...

In general: Copy/Cut something -> Close the application -> Clipboard data lost
Comment 5 Emmanuel Pescosta 2015-03-20 08:07:24 UTC
Maybe related to https://bugs.kde.org/show_bug.cgi?id=292236 (comment #5)
Comment 6 Emmanuel Pescosta 2015-03-20 08:11:29 UTC
Your Qt version? 5.4.1? 
https://bugs.kde.org/show_bug.cgi?id=329174
Comment 7 Alexander Nestorov 2015-03-20 11:19:09 UTC
Something fishy is going on with the entire clipboard thing. For example, I'm able to select and copy text from Okteta, but I can't paste it outside of Okteta. (I can paste only inside Okteta).

On the other hand, Kate works just fine. I can copy some text from Kate, then  close it, thenn paste that text inn another app and everything works.

My Qt version... I have qt4, which is 4.8.6-4, and qt5, which is 5.4.1-2, so the bug you linked to wasn't fixed in upstream.
Comment 8 Emmanuel Pescosta 2015-03-20 11:41:05 UTC
Clipboard works very sporadically here, but I haven found a pattern to trigger the buggy behaviour.

Sometimes everything works like a charm and sometimes nothing works (even a simple copy and paste between two applicatons doesn't work).

> qt5, which is 5.4.1-2

Ok same here.
Comment 9 Emmanuel Pescosta 2015-03-20 11:45:13 UTC
And sometimes when I copy something, it appears in the Klipper history, but pasting it doesn't work until I select it manually in the Klipper applet.
Comment 10 Emmanuel Pescosta 2015-03-20 12:03:42 UTC

*** This bug has been marked as a duplicate of bug 329174 ***
Comment 11 EMR_Kde 2015-09-17 13:24:44 UTC
(In reply to Emmanuel Pescosta from comment #9)
> And sometimes when I copy something, it appears in the Klipper history, but
> pasting it doesn't work until I select it manually in the Klipper applet.

Same problem here
Comment 12 eduardo 2016-05-27 00:02:13 UTC
Same problem, ctrl + c and then ctrl + v is not working at all, and this is on the latest version of kde plasma 5
Comment 13 eduardo 2016-05-27 00:05:03 UTC
Sorry, this is working fine now, never mind
Comment 14 EMR_Kde 2016-05-27 00:10:01 UTC
Not the Klipper part though. Sometimes I select and I have to select something else in the list, then select the original, before I am able to paste it elsewhere.