You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On this machine, I have my projects stored on a separate drive to my system and home directory. This drive is mounted at /data.
Since 4.1, if I attempt to delete a project file through the in-editor file browser, I get an error dialog (though the window opens much larger than this screenshot):
The editor output console shows the (misleading) error:
platform/linuxbsd/os_linuxbsd.cpp:968 - move_to_trash: No such file or directory as /data/src/godot/default/new_script.gd.
However, if Godot is run from the command-line, we also get the following additional information prior to that error output:
gio: file:///data/src/godot/default/new_script.gd: Unable to find or create wastebasket directory /data/.Trash-1000 to move /data/src/godot/default/new_script.gd to
Indeed, the root of the /data mount point is not writeable by regular users, and there's no trash directory in there already.
Prior to 4.1, it appears that deleted files would be moved into my home dir's trash, across filesystems, since my ~/.local/share/Trash is seemingly full of stuff I have previously deleted from my current project.
Steps to reproduce
Use Linux
Create or open a project on a secondary drive (one which doesn't also contain your home dir).
Open the project in the Godot editor
Delete a file (eg. icon.svg) from the editor's FileSystem panel.
👀 ❗
Minimal reproduction project
n/a
The text was updated successfully, but these errors were encountered:
akien-mga
changed the title
Unable to delete files when project is on non-/home drive / mount point
Unable to delete files when project is on non-/home drive / mount point with pre-existing .Trash folder
Jul 6, 2023
akien-mga
changed the title
Unable to delete files when project is on non-/home drive / mount point with pre-existing .Trash folder
Unable to delete files when project is on non-/home drive / mount point without pre-existing .Trash folder
Jul 6, 2023
We can't rely on the error code from `gio` or `kioclient5`, in my
rudimentary testing they return `1` for both missing files and other
situations like not having a Trash can on the mounted volume.
Fixesgodotengine#79108.
(cherry picked from commit a6e75f3)
Godot version
v4.1.stable.official [9704596] < Steam
System information
Godot v4.1.stable - Debian GNU/Linux trixie/sid trixie - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1060 (nvidia) - Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 Threads)
Issue description
On this machine, I have my projects stored on a separate drive to my system and home directory. This drive is mounted at
/data
.Since 4.1, if I attempt to delete a project file through the in-editor file browser, I get an error dialog (though the window opens much larger than this screenshot):
The editor output console shows the (misleading) error:
However, if Godot is run from the command-line, we also get the following additional information prior to that error output:
Indeed, the root of the
/data
mount point is not writeable by regular users, and there's no trash directory in there already.Prior to 4.1, it appears that deleted files would be moved into my home dir's trash, across filesystems, since my
~/.local/share/Trash
is seemingly full of stuff I have previously deleted from my current project.Steps to reproduce
icon.svg
) from the editor's FileSystem panel.Minimal reproduction project
n/a
The text was updated successfully, but these errors were encountered: