From 6be73fead93766c53eb2243d76c09e0c62d94331 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Mon, 14 Apr 2025 15:55:16 -0400 Subject: Set host/port explicitly when missing from config --- mpc-bar.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpc-bar.m') diff --git a/mpc-bar.m b/mpc-bar.m index eb5e9be..3df3cef 100644 --- a/mpc-bar.m +++ b/mpc-bar.m @@ -96,8 +96,8 @@ static int handler(void *userdata, const char *section, const char *name, NSMapTable *songMap; } - (void)initConfig { - config.host = NULL; - config.port = 0; + config.host = "localhost"; + config.port = 6600; config.format = "[%name%: &[[%artist%|%performer%|%composer%|%albumartist%] - ]%title%]|%name%|[[%artist%|%performer%|%composer%|%albumartist%] - ]%title%|%file%"; config.idle_message = "No song playing"; config.show_queue = 1; -- cgit v1.2.3