diff options
Diffstat (limited to 'taro')
| -rw-r--r-- | taro/daemon.c | 1 | ||||
| -rw-r--r-- | taro/ui.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/taro/daemon.c b/taro/daemon.c index d701ae6..b6faf3f 100644 --- a/taro/daemon.c +++ b/taro/daemon.c @@ -6,6 +6,7 @@ #include <nnwt/event_loop.h> #include <nnwt/signal.h> #include <nnwt/fs_event.h> +#include <nnwt/error.h> #include <nnwt/socket.h> #include <stl/window.h> #include <jansson.h> @@ -1324,7 +1324,8 @@ s32 main(void) db_sort(&u.db); const char *term_env = getenv("TERM"); - if (strcmp(term_env, "xterm-kitty") == 0) { + if ((strncmp(term_env, "xterm-kitty", sizeof("xterm-kitty")) == 0) || + (strncmp(term_env, "foot", sizeof("foot")) == 0)) { u.use_pixel_blit = true; } else { u.use_pixel_blit = false; |