Skip to content

Commit

Permalink
also check under /var/run/host for executables
Browse files Browse the repository at this point in the history
  • Loading branch information
KP2048 authored and doZennn committed Apr 27, 2022
1 parent 71c11eb commit 49707ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/renderer/services/parsers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,17 @@ export class ParsersService {
else
return true;
} catch (e) {
if (process.env["IN_FLATPAK"]) {
try {
let path = fs.statSync("/var/run/host" + fsPath);
if (checkForDirectory !== undefined)
return checkForDirectory ? path.isDirectory() : path.isFile();
else
return true;
} catch (e) {
return false;
}
}
return false;
}
}
Expand Down

0 comments on commit 49707ba

Please sign in to comment.