fix: tray icon not shown on linux flatpak or snap (#625)

This commit is contained in:
madoka773 authored and GitHub committed 2024-08-02 12:36:25 +08:00
1 parent 4fbe13a1f0
commit 69b359a9c9
3 files changed
+83 -81

No files matched your search

@@ -195,6 +195,8 @@ class AppController extends GetxController with WindowListener, TrayListener {
} else if (Util.isMacos()) {
await trayManager.setIcon('assets/tray_icon/icon_mac.png',
isTemplate: true);
} else if (Platform.environment.containsKey('FLATPAK_ID') || Platform.environment.containsKey('SNAP')) {
await trayManager.setIcon('com.gopeed.Gopeed');
} else {
await trayManager.setIcon('assets/tray_icon/icon.png');
}