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

Function openFile

launcher/DesktopServices.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool openFile(const QString &path)
94{
95 qDebug() << "Opening file" << path;
96 auto f = [&]()
97 {
98 return QDesktopServices::openUrl(QUrl::fromLocalFile(path));
99 };
100#if defined(Q_OS_LINUX)
101 return IndirectOpen(f);
102#else
103 return f();
104#endif
105}
106
107bool openFile(const QString &application, const QString &path, const QString &workingDirectory, qint64 *pid)
108{

Callers 1

onItemActivatedMethod · 0.85

Calls 2

openUrlFunction · 0.85
IndirectOpenFunction · 0.85

Tested by

no test coverage detected