summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2021-01-19 19:44:22 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2021-01-24 00:40:19 +0100
commit0e628290af2bd3cf35c322e22bf17bad59187ecf (patch)
tree3eafa3c78a98aad80edb7817f8982aa87799bab0 /src/main.cpp
parentMerge pull request #395 from LorenDB/master (diff)
downloadnheko-0e628290af2bd3cf35c322e22bf17bad59187ecf.tar.xz
Write database to the DataLocation
Diffstat (limited to '')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp

index b1dfa9f6..a890a6fd 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -93,9 +93,9 @@ screenCenter(int width, int height) } void -createCacheDirectory() +createStandardDirectory(QStandardPaths::StandardLocation path) { - auto dir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); + auto dir = QStandardPaths::writableLocation(path); if (!QDir().mkpath(dir)) { throw std::runtime_error( @@ -188,7 +188,8 @@ main(int argc, char *argv[]) http::init(); - createCacheDirectory(); + createStandardDirectory(QStandardPaths::CacheLocation); + createStandardDirectory(QStandardPaths::AppDataLocation); registerSignalHandlers();