bool AppLauncher::findUserDir()

in src/main/cpp/harness/applauncher.cpp [77:87]


bool AppLauncher::findUserDir(const char *str) {
    logMsg("AppLauncher::findUserDir()");
    if (!NbLauncher::findUserDir(str)) {    // will set userDir and possibly userHome.
        return false;
    }
    int pos = userDir.find(APPNAME_TOKEN);
    if (pos != string::npos) {
        userDir.replace(pos, strlen(APPNAME_TOKEN), appName);
    }
    return true;
}