MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / version

Method version

src/common/util/processutil.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112QString ProcessUtil::version(const QString &name)
113{
114 QString retOut;
115#ifdef linux
116 auto outCallback = [&retOut](const QByteArray &array) {
117 retOut = QString ::fromLatin1(array);
118 };
119 ProcessUtil::execute(name, {"-version"}, outCallback);
120#else
121#endif
122 return retOut;
123}
124
125bool ProcessUtil::hasGio()
126{

Callers 2

displayMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected