简体   繁体   English

在哪里可以找到有关将Java应用程序集成到Ubuntu应用程序指示器菜单中的信息?

[英]Where can I find information on integrating Java applications into the Ubuntu application indicator menu?

I have a Java application that essentially functions like an instant messaging type of program. 我有一个Java应用程序,其本质上就像一个即时消息类型的程序。 Until the recent "upgrades" to Ubuntu with the Unity interface I had a simple icon showing up in the system tray. 在最近使用Unity界面“升级”到Ubuntu之前,我在系统托盘中显示了一个简单的图标。 I realise there has been a lot of discussion regarding going back to the original purpose of this tray and don't desire to discuss that here. 我知道有很多关于回到这个托盘的最初目的的讨论,并且不想在这里讨论。 Rather, I'm looking for a simple and concise tutorial or documentation on how to properly integrate my app into the messaging system. 相反,我正在寻找一个简单而简洁的教程或文档,介绍如何将我的应用程序正确地集成到消息传递系统中。 I want new messages to pop-up notifications, and I've been able to do that through libnotify, however I don't know how to add the app itself as an entry under the messaging menu. 我想要弹出通知的新消息,我已经能够通过libnotify来做到这一点,但是我不知道如何将应用程序本身添加为消息菜单下的条目。 Any help pointing me in the right direction would be much appreciated. 任何帮助我指向正确方向的人都会非常感激。 I need the app to continue working cross-platform. 我需要该应用程序继续跨平台工作。

I think the best way to solve this is to use the Java DBUS library ( http://dbus.freedesktop.org/doc/dbus-java/ ) and learn about the Unity appindicator DBUS API. 我认为解决此问题的最佳方法是使用Java DBUS库( http://dbus.freedesktop.org/doc/dbus-java/ )并了解Unity appindicator DBUS API。 Then, write a special component for Unity and dynamically load this component if you are running Ubuntu. 然后,为Unity编写一个特殊组件,并在运行Ubuntu时动态加载该组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM