diff options
Diffstat (limited to 'src/fruits/cmv')
| -rw-r--r-- | src/fruits/cmv/cmv.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/fruits/cmv/cmv.c b/src/fruits/cmv/cmv.c index a525377..58c8e32 100644 --- a/src/fruits/cmv/cmv.c +++ b/src/fruits/cmv/cmv.c @@ -109,12 +109,20 @@ s32 window_system_main(u32 argc, str *argv, void *extra) { (void)extra; - bool local = argc > 1; + bool local; #ifdef CAMU_SINK_ONLY + local = argc > 1; if (local) { log_warn("Got arguments in a sink-only configuration."); return EXIT_FAILURE; } +#else + char *SINK_SERVER = getenv("SINK_SERVER"); + if (SINK_SERVER && al_strscmp(SINK_SERVER, "1") == 0) { + local = true; + } else { + local = argc > 1; + } #endif #ifdef CAMU_HAVE_FFMPEG @@ -177,14 +185,7 @@ s32 window_system_main(u32 argc, str *argv, void *extra) } #endif - char *home_env = getenv("HOME"); - if (home_env) { - str color_palette; - al_str_from(&color_palette, home_env); - al_str_cat(&color_palette, &al_str_c("/.config/colors.json")); - camu_colors_maybe_init(&color_palette); - al_str_free(&color_palette); - } + camu_colors_default_init(); str window_name; al_str_from(&window_name, "Sink ("); |