char *program_title = PROGRAM_TITLE_STRING;
char *program_icon_file = PROGRAM_ICON_FILENAME;
char *program_version = getProgramRealVersionString();
+ char *program_basename = getBaseNameNoSuffix(command_filename);
char *config_filename = getProgramConfigFilename(command_filename);
- char *userdata_basename = getBaseNameNoSuffix(command_filename);
char *userdata_subdir;
// read default program config, if existing
#if defined(PLATFORM_WINDOWS) || defined(PLATFORM_MAC) || defined(PLATFORM_EMSCRIPTEN)
userdata_subdir = program_title;
#elif defined(PLATFORM_UNIX)
- userdata_subdir = getStringCat2(".", userdata_basename);
+ userdata_subdir = getStringCat2(".", program_basename);
#else
userdata_subdir = USERDATA_DIRECTORY_OTHER;
#endif