mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-26 10:45:45 +01:00
Only consider executable files in io.pathSearch.
This commit is contained in:
@@ -393,7 +393,7 @@ var IO = Module("io", {
|
|||||||
dir = this.File(dir, true);
|
dir = this.File(dir, true);
|
||||||
|
|
||||||
let file = dir.child(bin);
|
let file = dir.child(bin);
|
||||||
if (file.exists())
|
if (file.exists() && file.isFile() && file.isExecutable())
|
||||||
return file;
|
return file;
|
||||||
|
|
||||||
// TODO: couldn't we just palm this off to the start command?
|
// TODO: couldn't we just palm this off to the start command?
|
||||||
|
|||||||
Reference in New Issue
Block a user