fix(ltray): re-order tray dep search (#2397)

This commit is contained in:
ReenigneArcher
2024-04-09 21:40:31 -04:00
committed by GitHub
parent 7e26d2fd30
commit 7602fa110c

View File

@@ -199,13 +199,13 @@ endif()
# tray icon # tray icon
if(${SUNSHINE_ENABLE_TRAY}) if(${SUNSHINE_ENABLE_TRAY})
pkg_check_modules(APPINDICATOR appindicator3-0.1)
if(APPINDICATOR_FOUND)
list(APPEND SUNSHINE_DEFINITIONS TRAY_LEGACY_APPINDICATOR=1)
else()
pkg_check_modules(APPINDICATOR ayatana-appindicator3-0.1) pkg_check_modules(APPINDICATOR ayatana-appindicator3-0.1)
if(APPINDICATOR_FOUND) if(APPINDICATOR_FOUND)
list(APPEND SUNSHINE_DEFINITIONS TRAY_AYATANA_APPINDICATOR=1) list(APPEND SUNSHINE_DEFINITIONS TRAY_AYATANA_APPINDICATOR=1)
else()
pkg_check_modules(APPINDICATOR appindicator3-0.1)
if(APPINDICATOR_FOUND)
list(APPEND SUNSHINE_DEFINITIONS TRAY_LEGACY_APPINDICATOR=1)
endif () endif ()
endif() endif()
pkg_check_modules(LIBNOTIFY libnotify) pkg_check_modules(LIBNOTIFY libnotify)