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.
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.
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.
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?
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!
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.
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.
Applied in fa83b69 and 70b048d.