Prevent deleting files in XCFE

I use XFCE 4.12 on Ubuntu 18.04 ; and I would like to avoid deleting files inadvertently from the right-click menu:

right-click menu XFCE

Both "Move to Trash" and "Delete" menu items permanently delete my files ; which can be really dangerous when I release my mouse button at the wrong item (I deleted a folder instead of renaming it).

  • Is there a way to remove those menu items?
  • Or can I disable file deletion from XFCE and only allow it from the command line?

(I must have a problem with the configuration of the trash on my system since "Move to Trash should send the files to the trash but that does not happen: files are deleted instead. However, this would not be a problem if I didn't have the menu item.)

I also posted on the official XFCE forum.

EDIT:

I don't have "Show action to permanently delete files and folders" under "Behaviour" in the Edit/Preferences menu in my XFCE version (4.12). It seems XFCE 4.12 is the official version for Ubuntu 18.04 ; so I am not sure I should force the update to the latest version...

enter image description here

1 Answer

To stop showing the "Delete" command, deselect "Show action to permanently delete files and folders" under "Behaviour" in the Edit/Preferences menu.

The "Move to Trash" should not delete permanently, rather move it to your Wastebasket.

To see what's in your Wastebasket do:

gio list Trash://

Your Trash folder should be in $HOME/.local/share/Trash - does that folder exist?

It's a good idea to add the "Wastebasket Applet" to your panel.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like