Adding dotfile support, a VERY BASIC GUI, and basic discord rpc

This commit is contained in:
2025-10-06 18:32:00 +10:00
parent eba7bf2252
commit 595207af91
5 changed files with 260 additions and 7 deletions

View File

@@ -63,7 +63,8 @@ int configHandler_Read(configHandler_config_t** configObj) {
printf("iOS Container Path: %s\n", config_path);
#endif // DEBUG
#else
rc = asprintf(&config_path, "config.json");
char* root_path = getenv("HOME");
rc = asprintf(&config_path, "%s/.config/ossp/config.json", root_path);
#endif // defined(__APPLE__) && defined(__MACH__) && defined(XCODE)
if (rc == -1) {
logger_log_error(__func__, "asprintf() failed (Could not generate config path).");