Where can I find Java application integration information in the Ubuntu application indicator menu?

I have a Java application that essentially functions as a type of instant messaging. Until recent β€œupdates” to Ubuntu with Unity, I had a simple icon that displayed in the system tray. I understand that there was a lot of discussion about returning to the original purpose of this tray and did not want to discuss it here. Rather, I'm looking for a simple and concise tutorial or documentation on how to properly integrate my application into a messaging system. I want pop-up notifications to appear on new messages, and I can do this through libnotify, however I do not know how to add this application as an entry in the message menu. Any help pointing me in the right direction would be greatly appreciated. I need an application to continue working on a cross-platform platform.

+6
source share
1 answer

I think the best way to solve this problem is to use the Java DBUS library ( http://dbus.freedesktop.org/doc/dbus-java/ ) and find out about the Unity appindicator DBUS API application. Then write a special component for Unity and dynamically load this component if you are using Ubuntu.

+2
source

Source: https://habr.com/ru/post/899812/


All Articles