Skip to content

Dragging "file system" icon even a short distance attempts to copy from / to somewhere #3698

@zahlman

Description

@zahlman

Distribution

Mint 22.3

Package version

6.6.3

Frequency

Always

Bug description

The special "Computer" folder seems to treat its contained "File System" icon (representing the path /) as if it were just another folder, despite the abstraction it's trying to create. Worse, Nemo doesn't seem to recognize the impossibility of copying or moving / into another folder.

Steps to reproduce

  • Double-click "Computer" icon on desktop, or navigate to computer:///
  • Press and hold "File System" icon, then begin to drag
  • Observe that a green "plus" appears next to the cursor

If the mouse is released on the Desktop, Nemo begins to prepare a large copying operation, presumably of the entire filesystem. (Destination is unclear as I closed the dialog immediately, not wanting to risk any copying.)

If instead the shift key is held, and "File System" released within the "Computer" window, all Nemo windows close, apparently a crash.

Expected behavior

Nemo should never offer or attempt to move or copy /, since there is normally no good reason to attempt it and because there is nowhere sensible it could be copied (without taking care to exclude the destination). This kind of copying should be the responsibility of more specialized tools. Dragging an icon within a window and releasing it within the same window should never have an effect.

More specifically:

  • Dragging within the "Computer" window should have no effect; the plus should not appear, whether or not the shift key is pressed, and the window should persist after dropping the icon. In other words, it should behave the same way as for icons representing a storage device or CD drive.

  • Attempting to move or copy "File System" onto the Desktop should produce an immediate error dialog, similar to an attempt to move or copy an ordinary folder into itself.

Additional information

The crash is 100% reproducible and produces console output like:

$ nemo --quit && nemo
sys:1: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
sys:1: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(nemo:3307373): GLib-GIO-CRITICAL **: 17:31:49.643: g_file_get_child: assertion '!g_path_is_absolute (name)' failed

(nemo:3307373): GLib-GIO-CRITICAL **: 17:31:49.643: g_file_get_child: assertion '!g_path_is_absolute (name)' failed

(nemo:3307373): GLib-GIO-CRITICAL **: 17:31:49.643: g_file_move: assertion 'G_IS_FILE (destination)' failed
Segmentation fault (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions