Problem with QDir::homePath()
-
-
The homePath is extracted from the HOME environment variable. If that is empty, the filesystem root is used:
qfilesystemengine_unix.cpp:
@
QString QFileSystemEngine::homePath()
{
QString home = QFile::decodeName(qgetenv("HOME"));
if (home.isNull())
home = rootPath();
return QDir::cleanPath(home);
}
@So it seems your HOME env variable got lost during application startup. You should check that with
@
qDebug() << qgetenv("HOME");
@