mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🐧 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user