summaryrefslogtreecommitdiff
path: root/src/fruits/cmv/cmv.c
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-08-26 15:08:16 -0400
committerAndrew Opalach <andrew@akon.city> 2026-08-26 15:08:16 -0400
commit6094c907b26e21f13373bae6bf3306dbae40af3c (patch)
tree981864ddb1ab9749d3e10a81edc782311826e101 /src/fruits/cmv/cmv.c
parentda9bddc70ff8544f3294b880d719c4605e87ad97 (diff)
downloadcamu-6094c907b26e21f13373bae6bf3306dbae40af3c.tar.gz
camu-6094c907b26e21f13373bae6bf3306dbae40af3c.tar.bz2
camu-6094c907b26e21f13373bae6bf3306dbae40af3c.zip
Update deps, small changes and cleanup
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fruits/cmv/cmv.c')
-rw-r--r--src/fruits/cmv/cmv.c19
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 (");