🐧 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
This commit is contained in:
Matt Lyons 2017-10-24 19:36:23 -07:00
parent 8d1ff1c59a
commit 424f9aeae6

View file

@ -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) {