From 43e1ffa1c3fc294e955c1368573f50c60cb594de Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Wed, 12 Jul 2017 02:09:11 +0200 Subject: [PATCH] supports XDG_CONFIG_HOME on Linux - stores NetRadiant config in ~/.config/netradiant or in ${XDG_CONFIG_HOME}/netradiant if set instead of ~/.netradiant --- radiant/environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/environment.cpp b/radiant/environment.cpp index 954847eb..4e15c815 100644 --- a/radiant/environment.cpp +++ b/radiant/environment.cpp @@ -245,7 +245,7 @@ void environment_init( int argc, char* argv[] ){ if ( !portable_app_setup() ) { StringOutputStream home( 256 ); - home << DirectoryCleaned( g_get_home_dir() ) << ".netradiant/"; + home << DirectoryCleaned( g_get_user_config_dir() ) << "netradiant/"; Q_mkdir( home.c_str() ); home_path = home.c_str(); } -- 2.39.2