tray_manager icon indicating copy to clipboard operation
tray_manager copied to clipboard

Linux: 'app_indicator_new' is deprecated

Open gnunicorn opened this issue 9 months ago • 4 comments

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

gnunicorn avatar Mar 19 '25 12:03 gnunicorn

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)

gnunicorn avatar Mar 19 '25 12:03 gnunicorn

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 avatar Mar 19 '25 12:03 gnunicorn

@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?

ilbonte avatar Mar 19 '25 19:03 ilbonte

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

Image

This is a temporary solution at least untill the new version of libayatana-appindicator-glib is available

ilbonte avatar Mar 19 '25 19:03 ilbonte

The new lib is now available trough Aur but I did't tray it yet: https://aur.archlinux.org/packages/libayatana-appindicator-glib

ilbonte avatar May 29 '25 20:05 ilbonte

libayatana-appindicator-glib?? When will this get fixed?

sgehrman avatar Oct 05 '25 01:10 sgehrman