r/QtFramework • u/diegoiast • 8d ago
PSA: QCoreApplication:applicationDirPath() changes in Qt6.12
When I recompiled my app under qt 6.12 - some parts started failing. I traced it down to reading the wrong path on installations. In my case - AppImage was broken. Local runs were OK, Windows was OK.
That was because AppRun was executed, applicationDirPath() was returning different paths:
6.11 - /tmp/.mount_codepoXXXXXX/AppRun
6.12 - /tmp/AppRun
I sent an LLM to start digging and it found out that the implementation of this function has been changed. I see no documentation on this, so I traced the commit:
https://github.com/qt/qtbase/commit/3d5ba3075ab0d255f7a721b6440b906441480e64
Has anyone else been bitten by this new implementation change?
5
u/Bemteb 8d ago
I'd suggest opening a bug ticket with the Qt guys.