From eb215c173ca32de3328773f79b8f60e7c0581dc0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 17 May 2016 20:30:53 +0900 Subject: [PATCH] Try linking with libnotify.so.5 --- brightray/browser/linux/libnotify_notification.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/brightray/browser/linux/libnotify_notification.cc b/brightray/browser/linux/libnotify_notification.cc index 49c3b6ad0477..a3f273c1c027 100644 --- a/brightray/browser/linux/libnotify_notification.cc +++ b/brightray/browser/linux/libnotify_notification.cc @@ -15,6 +15,7 @@ namespace brightray { namespace { + LibNotifyLoader libnotify_loader_; bool HasCapability(const std::string& capability) { @@ -35,7 +36,6 @@ bool NotifierSupportsActions() { static bool notify_has_result = false; static bool notify_result = false; - GList *capabilities = NULL; if (notify_has_result) return notify_result; @@ -62,7 +62,8 @@ Notification* Notification::Create(NotificationDelegate* delegate, // static bool LibnotifyNotification::Initialize() { - if (!libnotify_loader_.Load("libnotify.so.4") && + if (!libnotify_loader_.Load("libnotify.so.4") && // most common one + !libnotify_loader_.Load("libnotify.so.5") && !libnotify_loader_.Load("libnotify.so.1") && !libnotify_loader_.Load("libnotify.so")) { return false;