From 0fd8613bca2891937918847163fa52a7b1fa254d Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 12 Jun 2020 17:21:46 +1000 Subject: [PATCH] core: set config defaults before anything else Ensures media cache folder isn't created in `~/.local/share` root and its own folder instead. --- app/core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/core.cpp b/app/core.cpp index b5a86463b..e7a9fde07 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -82,6 +82,10 @@ Core *Core::instance() bool Core::Start() { + // Reset config (Config sets to default on construction already, but we do it again here as a workaround that fixes + // the fact that some of the config paths set by default rely on the app name having been set (in main()) + Config::Current().SetDefaults(); + // // Parse command line arguments // @@ -127,10 +131,6 @@ bool Core::Start() // Initialize task manager TaskManager::CreateInstance(); - // Reset config (Config sets to default on construction already, but we do it again here as a workaround that fixes - // the fact that some of the config paths set by default rely on the app name having been set (in main()) - Config::Current().SetDefaults(); - // Load application config Config::Load();