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
{{ message }}
Repository navigation
shell.trashItem() fails on tmpfs filesystems #28045
tldr: there are edge cases where gio trash will fail and in those cases we could use a fallback approach to trashing files in shell/common/platform_util_linux.cc's PlatformTrashItem().
Same issue exists in the older blocking-API function shell.moveItemToTrash().
The same gio trash trash can be seen from the command line. For example:
$ df --output=fstype,target /home
Type Mounted on
ext4 /home
$ echo'Hello, World!'>"$HOME"/test.txt
$ gio trash "$HOME"/test.txt
$ echo$?
0
$
$ df --output=fstype,target /tmp
Type Mounted on
tmpfs /tmp
$ echo'Hello, World!'> /tmp/test.txt
$ gio trash /tmp/test.txt
$ gio: file:///tmp/test.txt: Trashing on system internal mounts is not supported
$ echo$?
1
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
github-actions commentedon Oct 6, 2022
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
github-actions commentedon Nov 7, 2022
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.