From 424f9aeae6323d32fe55e3c4a3909e0565a4085c Mon Sep 17 00:00:00 2001 From: Matt Lyons Date: Tue, 24 Oct 2017 19:36:23 -0700 Subject: [PATCH] :penguin: Don't wait for xdg-open to exit Waiting for xdg-open to return freezes Electron application. Some file managers (ex: Nemo) don't return until some time after they are closed, this freezes the Electron application until the process returns. The same is true about any application that can potentially be opened with OpenItem --- atom/common/platform_util_linux.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/common/platform_util_linux.cc b/atom/common/platform_util_linux.cc index 18e375585142..76cdfaf45a89 100644 --- a/atom/common/platform_util_linux.cc +++ b/atom/common/platform_util_linux.cc @@ -75,11 +75,11 @@ bool ShowItemInFolder(const base::FilePath& full_path) { if (!base::DirectoryExists(dir)) return false; - return XDGOpen(dir.value(), true); + return XDGOpen(dir.value(), false); } bool OpenItem(const base::FilePath& full_path) { - return XDGOpen(full_path.value(), true); + return XDGOpen(full_path.value(), false); } bool OpenExternal(const GURL& url, bool activate) {