! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Files copied/cut to clipboard in thunar cannot be pasted in new thunar instance
Status:
RESOLVED: FIXED

Comments

Description Harald Judt 2011-01-05 08:18:51 CET
I've found a very annoying bug. Copy and paste does not work correctly any more:

1. Open thunar (I do this using a keyboard shortcut).
2. Select and copy (or cut) files.
3. Open another thunar instance.
4. Paste files.

Expected:
Files being pasted in the new thunar instance.

Result:
Files are not being pasted in the new thunar instance.

Further information:
* xfce4-clipboard-plugin is not being used. I don't want to use it.
* Opening a new thunar window from file menu for step 3 works.
* After the new thunar instance is open, copy&paste between the thunar instances works again.
Comment 1 Harald Judt 2011-02-22 18:41:26 CET
This problem still exists in 1.3.0.

Thunar does not clear the clipboard, as I can still paste the URL into the location bar in firefox or elsewhere, but it seems to mess it up on start.

I've done additional tests:
1. Open thunar.
2. Select and copy (or cut) files.
3. Open another thunar instance.
4. Paste into location bar.

Results: The URL string file:///somefile, appended by two char(10) is pasted into the location bar.
Expected results: The file itself being pasted into the folder.
Comment 2 Nick Schermer editbugs 2011-05-07 22:12:02 CEST
Created attachment 3657 
Store the thunar clipboard on exit

The real problem is that you don't run the thunar daemon (thunar --daemon), but the attached patch should fix this if a clipboard manager is running.
Comment 3 Harald Judt 2011-05-09 11:57:42 CEST
Nick, you're right, thanks for the clarification. When I start thunar as a daemon, then this problem disappears and copy and paste works very nicely.

I did not test your patch because I do not use any clipboard-manager, but thanks anyway, I'll give it a try later.

However, I don't quite understand why I would need to run thunar as daemon or use a clipboard-manager to get simple cut-and-paste functionality which works fine in other applications, and iirc has worked fine in previous versions of thunar. Is this a new feature and what improvements does it bring, especially compared to the old implementation, which - for my purposes - worked wonderfully too?
Comment 4 Harald Judt 2011-05-09 12:08:11 CEST
Starting thunar as a daemon has another great side-effect, though: New windows appear much faster, whereas there's been quite a pause when starting thunar 'conventionally'. I guess the copy-progress dialog works better too (till now I always got two icons in the notification area when starting different instances).

You killed three birds with one stone. Thanks!
Comment 5 Harald Judt 2011-05-09 12:12:57 CEST
Now I applied your patch, too. Although I don't use any clipboard-manager (at least I don't remember and cannot find anything related in the process list), the patch still seems to fix the issue :-)

Consider this solved.
Comment 6 Nick Schermer editbugs 2011-05-09 12:35:36 CEST
Xfce4-settings-helper provides a clipboard manager since 4.8. Thunar is designed to run as a daemon, but not required. I'll commit the patch later today.
Comment 7 Nick Schermer editbugs 2011-05-09 18:00:53 CEST
Applied in fa83b69 and 70b048d.

Bug #7060

Reported by:
Harald Judt
Reported on: 2011-01-05
Last modified on: 2011-05-09

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Attachments

Store the thunar clipboard on exit (2.29 KB, patch)
2011-05-07 22:12 CEST , Nick Schermer
no flags

Additional information