From f42157fdd7a7e05aaa6c94f289abd4a888c02239 Mon Sep 17 00:00:00 2001 From: deepend Date: Thu, 5 Feb 2026 11:25:07 -0700 Subject: [PATCH] Made GTK3 AppIndicator dependencies optional and only define AppIndicator macros when the dependency is found. Added compile-time selection to use AppIndicator when available and fall back to GtkStatusIcon otherwise, keeping the status-icon backend available for non-AppIndicator builds (including GTK3 fallback). --- src/fe-gtk/meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/fe-gtk/meson.build b/src/fe-gtk/meson.build index d870c00e..a845ab05 100644 --- a/src/fe-gtk/meson.build +++ b/src/fe-gtk/meson.build @@ -45,9 +45,11 @@ if get_option('gtk3') zoitechat_gtk_deps += appindicator_dep zoitechat_gtk_cflags += '-DHAVE_AYATANA_APPINDICATOR' else - appindicator_dep = dependency('appindicator3-0.1', required: true) - zoitechat_gtk_deps += appindicator_dep - zoitechat_gtk_cflags += '-DHAVE_APPINDICATOR' + appindicator_dep = dependency('appindicator3-0.1', required: false) + if appindicator_dep.found() + zoitechat_gtk_deps += appindicator_dep + zoitechat_gtk_cflags += '-DHAVE_APPINDICATOR' + endif endif endif else