在哪里可以找到有关将 Java 应用程序集成到 Ubuntu 应用程序指示器菜单中的信息?
我有一个 Java 应用程序,其功能本质上类似于即时消息类型的程序。直到最近使用 Unity 界面“升级”到 Ubuntu 之前,我的系统托盘中出现了一个简单的图标。我意识到关于回到这个托盘的最初目的已经有很多讨论,但不想在这里讨论。相反,我正在寻找有关如何将我的应用程序正确集成到消息传递系统中的简单而简洁的教程或文档。我想要新消息弹出通知,并且我已经能够通过 libnotify 做到这一点,但是我不知道如何将应用程序本身添加为消息菜单下的条目。任何帮助我指明正确方向的帮助将不胜感激。我需要该应用程序继续跨平台工作。
I have a Java application that essentially functions like an instant messaging type of program. Until the recent "upgrades" to Ubuntu with the Unity interface I had a simple icon showing up in the system tray. 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. Any help pointing me in the right direction would be much appreciated. I need the app to continue working cross-platform.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为解决这个问题的最好方法是使用 Java DBUS 库 ( http://dbus. freedesktop.org/doc/dbus-java/)并了解 Unity appindicator DBUS API。然后,为 Unity 编写一个特殊组件,并在运行 Ubuntu 时动态加载该组件。
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. Then, write a special component for Unity and dynamically load this component if you are running Ubuntu.