Bad placing of the "copy" string while drag-copying files with a dot in their name

Bug #57218 reported by Manu Cornet
54
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Nautilus
Fix Released
Low
nautilus (Ubuntu)
Fix Released
Low
Unassigned
Declined for Karmic by Sebastien Bacher

Bug Description

Binary package hint: nautilus

Steps to reproduce:

* Create a new file on the desktop, name it a.b.txt

* Drag-copy (Ctrl-drag) to somewhere else on the desktop.

* The new copied file is called a (copy).b.txt, where it should be a.b (copy).txt

This can happen especially in filenames with version, such as "document-2.6", etc.

This happens on an up-to-date Dapper.

Revision history for this message
Manu Cornet (lmanul) wrote :

(Please change the importance to a minor one, I don't seem to have the right for this :) )

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. That's known upstream: http://bugzilla.gnome.org/show_bug.cgi?id=351290

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Untriaged → Low
status: Unconfirmed → Confirmed
Changed in nautilus:
status: Unknown → Unconfirmed
Revision history for this message
Manu Cornet (lmanul) wrote :
Changed in nautilus:
assignee: desktop-bugs → lmanul
status: Confirmed → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :

As dicussed on IRC the patch would bring http://bugzilla.gnome.org/show_bug.cgi?id=306341 back (.tar.gz creating .tar (copy).gz)

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Then why not name it "copy X of foo", works with a.b.txt and foo.tar.gz

Revision history for this message
Sebastien Bacher (seb128) wrote :

Do other OSes and desktops have that feature? What do they use? The "copy ...." variant has the issue to break ordering. I'm not sure the issue is annoying enough to try figure a complicated way to make it work

Revision history for this message
Chris Rose (chris-vault5) wrote :

Windows prefixes a copy as 'Copy of $original_name' which as you say breaks ordering.

If nautilus used the first part of the file (split by '.') that has no white space that would give sensible results.

    my song feat. artist.tar.gz -> my song feat. artist (copy).tar.gz
    my_file.tar.gz -> my_file (copy).tar.gz

In this case ' artist' and 'my song feat' are not part of the file extension (both have whitespace), but 'tar' and 'gz' might be (no whitespace), so the sensible place to put it is before the 'tar' part.

(copy) should be placed:

  * before the first part of the file name with no whitespace
  * at the end of the first part of the file name if no parts contain whitespace

Changed in nautilus:
status: Unconfirmed → Confirmed
Manu Cornet (lmanul)
Changed in nautilus:
status: In Progress → Confirmed
Changed in nautilus:
status: Confirmed → Triaged
status: Triaged → Confirmed
Changed in nautilus:
status: Confirmed → Triaged
Revision history for this message
Artur Rona (ari-tczew) wrote :

This bug still alive in newest versions of nautilus?

Revision history for this message
Artur Rona (ari-tczew) wrote :

This bug has been fixed in Gnome 2.24.

Changed in nautilus:
status: Triaged → Fix Released
Revision history for this message
Artur Rona (ari-tczew) wrote :

Bug still exist in gnome 2.26/2.27.x

Changed in nautilus (Ubuntu):
status: Fix Released → Confirmed
Changed in nautilus (Ubuntu):
assignee: Manu Cornet (lmanul) → nobody
status: Confirmed → Triaged
Revision history for this message
Johannes (o-launchpad-spam-slzm-de) wrote :

Affects me as well on Ubuntu 9.04, Gnome 2.26.1.
Perhaps .tar.xx can defined as an exception?
It's a papercut ;-).

Johannes

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

Same thing in 9.10/Gnome 2.28.4. Noted upstream as well.

Revision history for this message
Victor Vargas (kamus) wrote :

I tried to reproduce this issue under Ubuntu Lucid and works as is expected (copy has the name 'your original file (copy).extension'), please could you check under latest release included in Lucid if this issue is still affecting you? Thanks!

Changed in nautilus (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Bruno Girin (brunogirin) wrote :

@Kamus: I just tried it with a fully patched Lucid. I had a file called "screenshot.godaddy.png" on my desktop and by click-dragging to copy it, I ended up with "screenshot (copy).godaddy.png". Note the first dot in the file name. On the other hand, I'd rather have Nautilus behave this way than mess up .tar.gz and .tar.bz2 extensions.

Changed in nautilus (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Victor Vargas (kamus) wrote :

@Bruno, ohh I see why works for me before, I tried this steps but with a file with structure "your file.png", you are right with "double" extension this behaviour is still occurring.

Victor Vargas (kamus)
Changed in nautilus (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
AJenbo (ajenbo) wrote :

How about calling the files "Copy of: $filename".

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

I'm marking the patch as "needswork", breaking .tar.gz and similar extensions is not an option, "Copy of: ..." would break ordering and therefore does not seem to be a solution most would agree upon.

tags: added: patch-needswork
Changed in nautilus:
importance: Unknown → Low
Changed in nautilus:
status: Confirmed → Fix Released
Changed in nautilus (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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