mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-23 03:33:57 +11:00
core: reference configs by absolute instead of canonical paths
This commit is contained in:
parent
00858812f2
commit
3e2ce40b18
4 changed files with 18 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue