MCPcopy Create free account
hub / github.com/OpenBangla/OpenBangla-Keyboard / environmentVariable

Function environmentVariable

src/shared/FileSystem.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49QString environmentVariable(const char *varName, const QString &defaultValue)
50{
51 QByteArray value = qgetenv(varName);
52 if (value.isNull())
53 return defaultValue;
54 return QString::fromLocal8Bit(value);
55}
56
57/// Copy the `fileName` from `src` to `dst`.
58/// This function overwrites if the file already exists in the destination.

Callers 2

DataMigrationMethod · 0.85
UserFoldersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected