Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: App crashes when appindicator is missing #31

Open
dainnilsson opened this issue Feb 22, 2023 · 1 comment
Open

Linux: App crashes when appindicator is missing #31

dainnilsson opened this issue Feb 22, 2023 · 1 comment

Comments

@dainnilsson
Copy link

When running an app with this plugin on Linux without libayatana-appindicator3-1 the app immediately crashes with:

error while loading shared libraries: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directory

This happens even without ever invoking any trayManager functions. Would it be possible to detect this and fail more gracefully? Ideally I'd like if my app could continue to run without a tray icon, and I could inform the user to install the required package to enable it.

@bdlukaa
Copy link

bdlukaa commented Oct 11, 2024

My app doesn't even build if the dependencies are not found.

I only want to use the plugin on Windows and macOS, but not on the Linux platform because I don't want to make the users download any dependencies to use the app. When I try to build for Linux, this error is emitted:

[   +5 ms] -- Checking for module 'ayatana-appindicator3-0.1'
[   +1 ms] --   No package 'ayatana-appindicator3-0.1' found
[        ] -- Checking for module 'appindicator3-0.1'
[   +1 ms] --   No package 'appindicator3-0.1' found
[        ] CMake Error at flutter/ephemeral/.plugin_symlinks/tray_manager/linux/CMakeLists.txt:32 (message):
[        ]   The `tray_manager` package requires ayatana-appindicator3-0.1 or
[        ]   appindicator3-0.1.  See
[        ]   https://github.com/leanflutter/tray_manager#linux-requirements

See full logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants