Youda008 / DoomRunner

Preset-oriented graphical launcher of various ported Doom engines (an alternative to ZDL)
GNU General Public License v3.0
205 stars 13 forks source link

Put options.json in QStandardPaths::AppConfigLocation #34

Closed poperigby closed 3 years ago

poperigby commented 3 years ago

Its current location on Linux (/opt/DoomRunner) causes permission issues, which makes DoomRunner unable to write to options.json.

If you set the config location to QStandardPaths::AppConfigLocation, then Qt will handle it for you, and should put it in the right directory no matter the OS.

Here's the relevant Qt documentation: https://doc.qt.io/qt-5/qstandardpaths.html

Youda008 commented 3 years ago

Alright, i will use the standard system paths for storing options.json, but only on Linux, on Windows it's an overkill for such small and simple app. Even GZDoom stores its config in the directory of its executable.

Youda008 commented 3 years ago

Done. Will be released soon.