🐧 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:
parent
8d1ff1c59a
commit
424f9aeae6
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue