core: reference configs by absolute instead of canonical paths

This commit is contained in:
outfoxxed 2025-10-18 14:09:03 -07:00
parent 00858812f2
commit 3e2ce40b18
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
4 changed files with 18 additions and 9 deletions

View file

@ -110,7 +110,7 @@ int locateConfigFile(CommandState& cmd, QString& path) {
}
if (split[0].trimmed() == *cmd.config.name) {
path = QDir(QFileInfo(file).canonicalPath()).filePath(split[1].trimmed());
path = QDir(QFileInfo(file).absolutePath()).filePath(split[1].trimmed());
break;
}
}
@ -140,8 +140,7 @@ int locateConfigFile(CommandState& cmd, QString& path) {
return -1;
}
path = QFileInfo(path).canonicalFilePath();
return 0;
goto rpath;
}
}
@ -154,7 +153,8 @@ int locateConfigFile(CommandState& cmd, QString& path) {
return -1;
}
path = QFileInfo(path).canonicalFilePath();
rpath:
path = QFileInfo(path).absoluteFilePath();
return 0;
}