Skip to content

Instantly share code, notes, and snippets.

@arodu
Last active September 21, 2018 15:23
Show Gist options
  • Select an option

  • Save arodu/276d2730db787f35c73849dbb3e5b731 to your computer and use it in GitHub Desktop.

Select an option

Save arodu/276d2730db787f35c73849dbb3e5b731 to your computer and use it in GitHub Desktop.
No need for gvfs-trash to delete files in Atom (Electron)

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 .bashrc and live on as a happy man.

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

Restart Atom and continue to enjoy life

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment