Skip to content

No warning when pressing Delete in a x-gvfs-notrash mounted partition

Version information

4.20.1

Steps to reproduce

  1. Mount a drive with "x-gvfs-notrash" option
  2. Select a file in that partition
  3. Hit "Delete" on your keyboard

Current behavior

Warning alert was not shown when hitting delete

2

Expected outcome

It should show a warning like what Shift+Delete does

1

Backtrace

Additional information

Setting "x-gvfs-notrash" prevents the creation of ".Trash-<user-id>" in the root of the partition. In this case, no warning was shown and files aren't in ".Trash-<user-id>"