aboutsummaryrefslogtreecommitdiff
path: root/src/notifications.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/notifications.cpp')
-rw-r--r--src/notifications.cpp4
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.