MCPcopy Create free account
hub / github.com/MultiMC/Launcher / run

Function run

launcher/DesktopServices.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool run(const QString &application, const QStringList &args, const QString &workingDirectory, qint64 *pid)
122{
123 qDebug() << "Running" << application << "with args" << args.join(' ');
124#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
125 // FIXME: the pid here is fake. So if something depends on it, it will likely misbehave
126 return IndirectOpen([&]()
127 {
128 return QProcess::startDetached(application, args, workingDirectory);
129 }, pid);
130#else
131 return QProcess::startDetached(application, args, workingDirectory, pid);
132#endif
133}
134
135bool openUrl(const QUrl &url)
136{

Callers 10

processZipPackMethod · 0.85
openJsonEditorMethod · 0.85
executeTaskMethod · 0.85
extractConfigsMethod · 0.85
onModsDownloadedMethod · 0.85
unzipMethod · 0.85
downloadSucceededMethod · 0.85
downloadSucceededMethod · 0.85
executeTaskMethod · 0.85
executeTaskMethod · 0.85

Calls 2

IndirectOpenFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected