Linux: 'app_indicator_new' is deprecated
Since today, flutter run on Linux fails with
/DEV/acter/a3/app/linux/flutter/ephemeral/.plugin_symlinks/tray_manager/linux/tray_manager_plugin.cc:118:17: error: 'app_indicator_new' is deprecated
on arch linux with the following installed:
libayatana-appindicator 0.5.94-1 [Installiert] extra
Ayatana Application Indicators shared library
libappindicator-gtk3 12.10.0.r298-4 [Installiert] extra
Allow applications to extend a menu via Ayatana indicators in Unity, KDE or Systray (GTK+ 3
library)
looks like the authors want us to bind against the new glib version they are writing. isn't available as a package yet here though ...
@gnunicorn i guess that you are reffering to this https://github.com/AyatanaIndicators/libayatana-appindicator/commit/13ea932892cba6913f1dd24ef0e807940fe011dc
They are saying to use this new version: https://github.com/AyatanaIndicators/libayatana-appindicator-glib that as you say is not yet available
Did you find any workaround?
Ok, i found a workaround: i edited the file CMakeLists.txt and added
target_compile_options(${TARGET} PRIVATE -Wno-error=deprecated-declarations) # Allow deprecated warnings
And then flutter clean
This is a temporary solution at least untill the new version of libayatana-appindicator-glib is available
The new lib is now available trough Aur but I did't tray it yet: https://aur.archlinux.org/packages/libayatana-appindicator-glib
libayatana-appindicator-glib?? When will this get fixed?