From 98186c4143776a6ddfa7e13bbc08a44891c6c1b1 Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 17 May 2017 23:46:29 -0400 Subject: [PATCH] Support `gio` as trash implementation Ideally this will become the default as `gvfs-trash` is deprecated and nothing more than a wrapper to `gio` but at least allow easily opting into the modern method. --- atom/common/platform_util_linux.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/common/platform_util_linux.cc b/atom/common/platform_util_linux.cc index 5c0eaecdd1c..18e37558514 100644 --- a/atom/common/platform_util_linux.cc +++ b/atom/common/platform_util_linux.cc @@ -126,6 +126,10 @@ bool MoveItemToTrash(const base::FilePath& full_path) { } else if (trash.compare("trash-cli") == 0) { argv.push_back("trash-put"); argv.push_back(full_path.value()); + } else if (trash.compare("gio") == 0) { + argv.push_back("gio"); + argv.push_back("trash"); + argv.push_back(full_path.value()); } else { argv.push_back(ELECTRON_DEFAULT_TRASH); argv.push_back(full_path.value());