No need for gvfs-trash to delete files in Atom (Electron)

Revision history
Tags: atom electron trash

I don’t want to install gvfs with all its friends just to be able to delete files from within Atom/Electron. However, the environment variable ELECTRON_TRASH can set another trash handler, e.g. trash-cli, which is dependency free.

So I append the variable to my .zshenv and live on as a happy man.

# pacman -S trash-cli --noconfirm > /dev/null
$ echo "export ELECTRON_TRASH=trash-cli" >> ~/.zshenv

Restart Atom and continue to enjoy life


If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.