Skip to content

Commit d8d4ae8

Browse files
committed
Resolve root path via symlink targets
1 parent 03d00f1 commit d8d4ae8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common/paths.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ void setRootPath(const QString &rootPath)
6060
void setRelativeRootPath(const char *relativeRootPath)
6161
{
6262
Q_ASSERT(relativeRootPath);
63-
setRootPath(QCoreApplication::applicationDirPath() + QDir::separator()
63+
setRootPath(QFileInfo(QCoreApplication::applicationFilePath()).canonicalPath()
64+
+ QDir::separator()
6465
+ QLatin1String(relativeRootPath));
6566
}
6667

0 commit comments

Comments
 (0)