settings.ini in portable mode should be taken relative to the executable path
Created by: char101
Describe the problem or limitation you are having
I added crow.exe to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
so that I can run crow.exe
from the run dialog. But it did not pick the settings.ini
file because it is specified as relative path (i.e. to the current working directory) rather than to the application directory.
Describe the solution you'd like
Join settings.ini
with QCoreApplication::applicationDirPath()
.
Describe alternatives you've considered N/A
Additional context OS: Windows 10