mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
search for programs in the standard executables locations in addition to PATH
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1cb05d724c
commit
97d884a9cc
1 changed files with 3 additions and 1 deletions
|
@ -287,7 +287,9 @@ QString QStandardPaths::findExecutable(const QString &executableName, const QStr
|
|||
}
|
||||
|
||||
if (paths.isEmpty()) {
|
||||
return searchExecutable(qGetEnvList("PATH"), executableName);
|
||||
QStringList locations = standardLocations(QStandardPaths::ExecutableLocation);
|
||||
locations += qGetEnvList("PATH");
|
||||
return searchExecutable(locations, executableName);
|
||||
}
|
||||
|
||||
return searchExecutable(paths, executableName);
|
||||
|
|
Loading…
Add table
Reference in a new issue