From: Thomas Debesse Date: Wed, 12 Jul 2017 00:09:11 +0000 (+0200) Subject: supports XDG_CONFIG_HOME on Linux X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43e1ffa1c3fc294e955c1368573f50c60cb594de;p=xonotic%2Fnetradiant.git supports XDG_CONFIG_HOME on Linux - stores NetRadiant config in ~/.config/netradiant or in ${XDG_CONFIG_HOME}/netradiant if set instead of ~/.netradiant --- 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(); }