From eec481a9af919df2f920dd2204daba5f505b4fba Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 16 Jun 2019 13:07:17 +0200 Subject: [PATCH] radiant: mkdir config parent dir --- radiant/environment.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radiant/environment.cpp b/radiant/environment.cpp index bc64964a..58554952 100644 --- a/radiant/environment.cpp +++ b/radiant/environment.cpp @@ -289,8 +289,14 @@ void environment_init( int argc, char const* argv[] ){ } if ( !portable_app_setup() ) { + // this is used on both Linux and macOS + // but a macOS specific code may be written instead StringOutputStream home( 256 ); home << DirectoryCleaned(g_get_user_config_dir()) << "/" << RADIANT_BASENAME << "/"; + // first create ~/.config + // since it may be missing on brand new home directory + Q_mkdir( g_get_user_config_dir() ); + // then create ~/.config/netradiant Q_mkdir( home.c_str() ); home_path = home.c_str(); } -- 2.39.2