mirror of
https://github.com/KDE/konsole.git
synced 2026-05-18 11:35:52 -04:00
No need to lookup executable PATH when absolute path is given
This commit is contained in:
@@ -379,6 +379,11 @@ QString Session::checkProgram(const QString& program)
|
||||
if (exec.isEmpty())
|
||||
return QString();
|
||||
|
||||
QFileInfo info(exec);
|
||||
if (info.isAbsolute() && info.exists() && info.isExecutable()) {
|
||||
return exec;
|
||||
}
|
||||
|
||||
exec = KRun::binaryName(exec, false);
|
||||
exec = KShell::tildeExpand(exec);
|
||||
QString pexec = KStandardDirs::findExe(exec);
|
||||
|
||||
Reference in New Issue
Block a user