Contents of clipboard disappears when cutting (moving) files

Bug #508859 reported by Christian Dannie Storgaard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nautilus
Invalid
Low
nautilus (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: nautilus

To reproduce:
Copy some text from anywhere to the clipboard.
Cut a file in Nautilus (right-click a file and select cut or select a file and click Ctrl+X)
Try pasting in any program other than Nautilus (preferably a program that accepts text input, e.g. a text editor)
The filename of the cut file is inserted.

What was expected:
The original copied text should have been inserted.

Reasoning:
Since cutting a file is removing it from its destination and putting it somewhere else, pasting in something else than a file manager does not yield the expected operation.

Suggested fix:
Nautilus should keep a copy of the current contents of the clipboard when doing a cut operation, check if the target of the paste is a file manager (or other program that accepts a file as input) and continue the operation as it functions now if it is, or the previous contents of the clipboard if it is not.

ProblemType: Bug
Architecture: i386
Date: Sun Jan 17 19:56:17 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/nautilus
NonfreeKernelModules: nvidia
Package: nautilus 1:2.28.1-0ubuntu3
ProcEnviron:
 PATH=(custom, user)
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: nautilus
Uname: Linux 2.6.31-17-generic i686

Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :
Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Yazen Ghannam (yghannam-deactivatedaccount-deactivatedaccount) wrote :

Hello Christian,

Thank you for taking the time to submit a report. I can personally confirm this behavior. While going through the GNOME Bugzilla I found a bug from a few years ago requesting this behavior. It wasn't clear whether it was implemented on purpose or by mistake. Nevertheless, I went ahead and forwarded this report upstream. Thank you again.

old report requesting behavior: https://bugzilla.gnome.org/show_bug.cgi?id=48026
new report: https://bugzilla.gnome.org/show_bug.cgi?id=607410

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Thanks for sending this upstream.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Changed in nautilus:
status: Unknown → Invalid
Changed in nautilus:
importance: Unknown → Low
Revision history for this message
Omer Akram (om26er) wrote :

from upstream
"""
Yazen, it isn't _always_ nautilus that gets the target for a paste of a file.
You could for instance paste in a text entry to get the path to the file and
other applications can do other stuff, because of this we have to use the
clipboard. Marking this as NOTABUG.
"""

Changed in nautilus (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

That makes sense for Copy, but not for Cut, where it is impossible to move the file into pretty much anything other than a file manager.
Cut means "remove from here, place other place" and the current behaviour goes against that.

Changed in nautilus (Ubuntu):
status: Invalid → Opinion
Revision history for this message
Omer Akram (om26er) wrote :

could you comment on the real bug here https://bugzilla.gnome.org/show_bug.cgi?id=607410 and get it re-opened so that there is a reason for this bug to stay open

Changed in nautilus (Ubuntu):
status: Opinion → Incomplete
Revision history for this message
Christian Dannie Storgaard (cybolic) wrote :

I thought Ubuntu was still doing custom patches against upstream... oh well, will comment on upstream.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Marking Invalid for the same reason as given in the upstream bug. Ubuntu does do custom patches against upstream, but not for things like this (because they need to be maintained and something like this is not important enough to be worth the effort). If you can convince the upstream maintainers that it should work that way then change the Status here.

Thanks,

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in nautilus (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.