MCPcopy Create free account
hub / github.com/TheAssassin/AppImageLauncher / expandTilde

Function expandTilde

src/shared/shared.cpp:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92QString expandTilde(QString path) {
93 if ((path.size() == 1 && path[0] == '~') || (path.size() >= 2 && path.startsWith("~/"))) {
94 path.remove(0, 1);
95 path.prepend(QDir::homePath());
96 }
97
98 return path;
99}
100
101// calculate path to config file
102QString getConfigFilePath() {

Callers 2

getConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected