MCPcopy Create free account
hub / github.com/KDAB/GammaRay / absoluteExecutablePath

Method absoluteExecutablePath

launcher/core/launchoptions.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85QString LaunchOptions::absoluteExecutablePath() const
86{
87 if (d->launchArguments.isEmpty())
88 return QString();
89
90 QString path = d->launchArguments.first();
91 const QFileInfo fi(path);
92 if (fi.isFile() && fi.isExecutable())
93 return path;
94 path = QStandardPaths::findExecutable(d->launchArguments.first());
95 if (!path.isEmpty())
96 return path;
97
98 return d->launchArguments.first();
99}
100
101qint64 LaunchOptions::pid() const
102{

Callers 1

mainFunction · 0.45

Calls 2

QStringClass · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected