diff options
author | Ted Gould <ted@gould.cx> | 2016-09-21 17:07:33 -0500 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | 231168012760d2161318bc31498e72ada7a82716 (patch) | |
tree | e8b7c028c8f5e257172dd908fe82b05b0fa206d9 | |
parent | 8502c81e2d46a89583d18253915103f29fa9e977 (diff) | |
download | ayatana-indicator-datetime-231168012760d2161318bc31498e72ada7a82716.tar.gz ayatana-indicator-datetime-231168012760d2161318bc31498e72ada7a82716.tar.bz2 ayatana-indicator-datetime-231168012760d2161318bc31498e72ada7a82716.zip |
Use an explicit registry object so that it gets free'd when the function exits
-rw-r--r-- | src/notifications.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/notifications.cpp b/src/notifications.cpp index 4a2c846..a0ceb6f 100644 --- a/src/notifications.cpp +++ b/src/notifications.cpp @@ -26,6 +26,7 @@ #ifdef HAS_LOMIRIAPPLAUNCH #include <liblomiri-app-launch/lomiri-app-launch/appid.h> +#include <liblomiri-app-launch/lomiri-app-launch/registry.h> #endif #include <uuid/uuid.h> @@ -463,7 +464,8 @@ private: static std::string calendar_app_id() { #ifdef HAS_LOMIRIAPPLAUNCH - auto app_id = lomiri::app_launch::AppID::discover("com.lomiri.calendar"); + auto registry = std::make_shared<lomiri::app_launch::Registry>(); + auto app_id = lomiri::app_launch::AppID::discover(registry, "com.lomiri.calendar"); if (!app_id.empty()) // Due the use of old API by messaging_menu we need append a extra ".desktop" to the app_id. |