From dc121d21632e8b4c40072c2171dbdb655c344836 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Tue, 24 Sep 2024 20:36:16 -0400 Subject: Choose better config file name, and bump version number properly --- README.md | 2 +- mpc-bar.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 16c3cb1..8ba7ecc 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ brew services start spnw/formulae/mpc-bar ``` ## Configuration -MPC Bar is configured with a `~/.mpcbar.ini` file. Currently the only +MPC Bar is configured with a `~/.mpcbar` file. Currently the only options are these: ``` diff --git a/mpc-bar.m b/mpc-bar.m index c4a25b9..5d83fb0 100644 --- a/mpc-bar.m +++ b/mpc-bar.m @@ -10,7 +10,7 @@ #include "ini.h" -#define VERSION "0.1.2" +#define VERSION "0.2" #define TITLE_MAX_LENGTH 96 #define SLEEP_INTERVAL 0.2 @@ -73,7 +73,7 @@ static int handler(void *userdata, const char *section, const char *name, } - (void)readConfigFile { const char *path = [[NSHomeDirectory() - stringByAppendingPathComponent:@".mpcbar.ini"] UTF8String]; + stringByAppendingPathComponent:@".mpcbar"] UTF8String]; if (ini_parse(path, handler, &config) < 0) { NSLog(@"Failed to read config file"); } -- cgit v1.2.3