diff --git a/server/Makefile b/server/Makefile index 7677a07e..c2398182 100644 --- a/server/Makefile +++ b/server/Makefile @@ -18,6 +18,12 @@ CFLAGS+=-DWITH_APPINDICATOR CFLAGS+=`pkg-config --cflags appindicator3-0.1` LDFLAGS+=`pkg-config --libs appindicator3-0.1` SOURCES+=telega-appindicator.c +else ifeq ($(shell pkg-config --exists ayatana-appindicator3-0.1 && echo yes), yes) +CFLAGS+=-DWITH_APPINDICATOR +CFLAGS+=-DWITH_AYATANA_APPINDICATOR +CFLAGS+=`pkg-config --cflags ayatana-appindicator3-0.1` +LDFLAGS+=`pkg-config --libs ayatana-appindicator3-0.1` +SOURCES+=telega-appindicator.c endif ifdef WITH_VOIP diff --git a/server/telega-appindicator.c b/server/telega-appindicator.c index c96dec4c..4602306d 100644 --- a/server/telega-appindicator.c +++ b/server/telega-appindicator.c @@ -34,7 +34,11 @@ #include #include +#ifdef WITH_AYATANA_APPINDICATOR +#include +#else #include +#endif extern void telega_output_json(const char* otype, const char* json); diff --git a/telega-modes.el b/telega-modes.el index 45b82265..0ae5b55c 100644 --- a/telega-modes.el +++ b/telega-modes.el @@ -252,7 +252,8 @@ If MESSAGES-P is non-nil then use number of messages with mentions." ;; Global minor mode to display =telega= status in system tray. This ;; mode requires appindicator support in the =telega-server=. To add ;; appindicator support to =telega-server=, please install -;; =libappindicator3-dev= system package and rebuild =telega-server= +;; =libappindicator3-dev= or =libayatana-appindicator3-dev= +;; system package and rebuild =telega-server= ;; with {{{kbd(M-x telega-server-build RET}}}. ;; ;; Screenshot of system tray with enabled =telega= appindicator: