Well, I managed to get the nautilus source code to compile and do some more testing. It is a bit hard to figure out the code when you're not familiar with it though, especially the way renaming in list view is implemented (the developers even call it a "HACK!!!!" in a comment in nautilus-view.c line 1758)
At first I thought that when pressing Escape while renaming, there might be missing a call to a cleanup method. But unfortunately it was not that simple. A call to cell_renderer_editing_canceled is done, which seems like it should put back nautilus in a normal state.
I did find out that the pressing of Escape is not actually what triggers the problem directly. If you select a file and press F2, then press Escape (so without Ctrl-C), then press F2 again, that last F2 will also trigger the bug. After that you can stop editing using Enter, and Copy/Paste in nautilus wil still be broken. So pressing Ctrl-C while renaming the file is not even necessary to trigger the bug.
Just like Francisco Franchetti says above, when the bug triggers I see:
Gtk-WARNING **: Inserting action group 'ClipboardActions' into UI manager which already has a group with this name
So yeah, that's all I have for now. Maybe I can look further later. If someone has any tips on where to look and which lines of code to debug I'd be glad to hear it.
Well, I managed to get the nautilus source code to compile and do some more testing. It is a bit hard to figure out the code when you're not familiar with it though, especially the way renaming in list view is implemented (the developers even call it a "HACK!!!!" in a comment in nautilus-view.c line 1758)
At first I thought that when pressing Escape while renaming, there might be missing a call to a cleanup method. But unfortunately it was not that simple. A call to cell_renderer_ editing_ canceled is done, which seems like it should put back nautilus in a normal state.
I did find out that the pressing of Escape is not actually what triggers the problem directly. If you select a file and press F2, then press Escape (so without Ctrl-C), then press F2 again, that last F2 will also trigger the bug. After that you can stop editing using Enter, and Copy/Paste in nautilus wil still be broken. So pressing Ctrl-C while renaming the file is not even necessary to trigger the bug.
Just like Francisco Franchetti says above, when the bug triggers I see:
Gtk-WARNING **: Inserting action group 'ClipboardActions' into UI manager which already has a group with this name
And when I try to paste a file after that:
Gtk-CRITICAL **: gtk_widget_ get_clipboard: assertion 'gtk_widget_ has_screen (widget)' failed request_ text: assertion 'clipboard != NULL' failed
Gtk-CRITICAL **: gtk_clipboard_
So yeah, that's all I have for now. Maybe I can look further later. If someone has any tips on where to look and which lines of code to debug I'd be glad to hear it.