From 7d394af892bc3279d42f5914ae330407e75ad277 Mon Sep 17 00:00:00 2001
From: Yuto Tokunaga <yuntan.sub1@gmail.com>
Date: Fri, 8 Nov 2019 00:14:45 +0900
Subject: [PATCH] libnotify: add desktop-entry hint to specify app icon

---
 core/plugin/libnotify/libnotify.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/plugin/libnotify/libnotify.rb b/core/plugin/libnotify/libnotify.rb
index 461c557e..baa56f65 100644
--- a/core/plugin/libnotify/libnotify.rb
+++ b/core/plugin/libnotify/libnotify.rb
@@ -13,9 +13,11 @@
         text = text.description
       end
       command << '-t' << '%d000' % UserConfig[:notify_expire_time]
-      command << "-i" << icon_file_name << user.title
+      command << "-i" << icon_file_name
       command << "-a" << Environment::NAME
-      command << text.to_s
+      command << '-h' << "string:desktop-entry:#{Environment::NAME}"
+      command << user.title # summary
+      command << text.to_s # body
       bg_system(*command)
     }.trap{|err|
       error err
-- 
2.23.0

