Bug 3465 - add libappindicator support to notification plugin
Summary: add libappindicator support to notification plugin
Status: RESOLVED WORKSFORME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/Notification (show other bugs)
Version: 3.11.1
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
: 3529 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-13 05:49 UTC by HendrikL
Modified: 2015-11-12 16:18 UTC (History)
1 user (show)

See Also:


Attachments

Description HendrikL 2015-07-13 05:49:15 UTC
It would be great if the tray-icon is shown in the system tray of plasma5/KF5 (formerly known as KDE). The notification are shown but the tray-icon not.

Did you read this blog post? -> http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/

Some infos about my system

#######################
Host: xyz Kernel: 4.1.2-towo.1-siduction-amd64 x86_64 (64 bit) Desktop: Xfce 4.12.2
Distro: siduction 14.1.0 Indian Summer - kde - (201411230337) (debian sid/unstable)

LANG=C apt-cache policy claws-mail
claws-mail:
  Installed: 3.11.1-3+b1

LANG=C apt-cache policy claws-mail-multi-notifier
claws-mail-multi-notifier:
  Installed: 3.11.1-3+b1


LANG=C apt-cache policy libappindicator1
libappindicator1:
  Installed: 0.4.92-3.1

LANG=C apt-cache policy libappindicator3-1
libappindicator3-1:
  Installed: 0.4.92-3.1
####################### 

I hope this is the right place to fill that request.

Greetings Hendrik Lehmbruch
Comment 1 Paul 2015-09-30 12:06:30 UTC
*** Bug 3529 has been marked as a duplicate of this bug. ***
Comment 2 Andrej Kacian 2015-10-17 14:46:49 UTC
One technical hurdle to overcome is that appindicator does not allow for custom icons from XPM inline in the code, but one has to install an icon file somewhere, and point the library to that path. See http://askubuntu.com/questions/108522/how-to-use-custom-icon-in-an-appindicator :
  After calling set_icon_theme_path you can reference your-icon.png under the "icon name" your-icon.
Comment 3 Andrej Kacian 2015-10-17 19:35:54 UTC
Good news at least for Debian users, the old-style tray icons will be supported in KDE5 for the foreseeable future, see https://lists.debian.org/msgid-search/1827691445107908@web19m.yandex.ru

In the meantime, I have played with libappindicator a bit, and found out that working with it is rather trivial, after you get after one or two initial gotchas. What stopped me is code structure of the notification plugin, where I am not entirely sure what is the best way to add libappindicator support.

Logically, this would go right next to notification_trayicon.[ch] as notification_appindicator.[ch], but in notification_trayicon.[ch], there is a lot of code around handling of popup menu and preparing message counts. I do not want to duplicate that code, since that is a surefire way to maintainer's nightmare.

I was able to separate the popup menu creation into a notification_core.c (I think), but I am unsure of what to do with the rest. It would help if Holger could have a look at it, and suggest best solution - he knows the notification_plugin code best. :)
Comment 4 Paul 2015-11-12 16:18:52 UTC
This is no longer a problem in KDE 5.15.0.

Note You need to log in before you can comment on or make changes to this bug.