Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐧 Add support for different trash implementations #7178

Merged
merged 1 commit into from Sep 16, 2016

Conversation

aichingm
Copy link
Contributor

@aichingm aichingm commented Sep 12, 2016

Add support for kioclient, kioclient5 and trash-cli in MoveItemToTrash.

The desired implementation has to be specified in the environment variable ELECTRON_TRASH . If none is it will fallback to gvfs-trash. Valid values for ELECTRON_TRASH are:

  • kioclient5
  • kioclient
  • trash-cli

It will also fallback to gvfs-trash if the value of ELECTRON_TRASH is none of the above.

This fixes:

and allows users of kde, xfce and other desktop environments to delete files and folders without the need of gvfs.

Make the trash implemantation in MoveItemToTrash selectable via an environment variable
@zcbenz
Copy link
Member

zcbenz commented Sep 16, 2016

Thanks!

@admhpr
Copy link

admhpr commented Jul 8, 2017

This was the fix for me on Manjaro xfce 17.0.1:

$ ELECTRON_TRASH=trash-cli atom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants