JAyatana-AppMenu without Unity Desktop
Closed this issue · 6 comments
GoogleCodeExporter commented
Hello, I'm using Ubuntu 12.04 but the desktop Enviroment is Gnome Classic, not
Unity. I use gnome2-globalmenu under Gnome. I've read the source code. In
AyatanaDesktop.java, method isSupported():
if (!"Unity".equals(System.getenv("XDG_CURRENT_DESKTOP")))
returns false. Because in my case, System.getenv("XDG_CURRENT_DESKTOP") returns
"GNOME" instead of "Unity".
I've made the test, ApplicationMenu.tryInstall() still works well even though
AyatanaDesktop.isSupported() returns false.
So is it possible to make some changes in method AyatanaDesktop.isSupported()?
So I can enjoy this cool thing too.
Thanks a lot! Nice work.
Original issue reported on code.google.com by biggerti...@gmail.com
on 13 Jun 2012 at 8:40
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
for fast workarround, you can add JVM property jayatana.force=true, this force
the AyatanaDesktop.isSupported() method to return always true.
But i'm not sure if this works, because the Unity Global Menu use the
libappmenu library, not use the globalmenu library. The libappmenu use your own
g_dbus_proxy ("com.canonical.AppMenu.Registrar") and JAyatana library work with
this g_dbus_proxy, you can see the source
http://code.google.com/p/java-swing-ayatana/source/browse/trunk/jayatana/jayatan
a/org_java_ayatana_ApplicationMenu.c#126.
So sorry, but I don't know how works globalmenu library. But if it works like a
libappmenu, maybe you change the g_dbus_proxy to use the globalmenu library.
Original comment by danjaredg
on 13 Jun 2012 at 5:17
GoogleCodeExporter commented
if lo-menubar works, then the Jayatana must operate with JVM property
jayatana.force=true
Original comment by danjaredg
on 13 Jun 2012 at 5:21
GoogleCodeExporter commented
Sorry, I found that what I exactly use is "indicator-applet-appmenu", version
0.5.0. Previously I thought it's come from gnome2-globalmenu.
And the jayatana.force=true workarround does take effect. I put it in the
netbeans.conf with "-J-Djayatana.force=true"
Thanks a lot!
Original comment by biggerti...@gmail.com
on 15 Jun 2012 at 9:10
GoogleCodeExporter commented
Original comment by danjaredg
on 15 Jun 2012 at 4:49
- Changed title: JAyatana-AppMenu without Unity Desktop
- Changed state: Accepted
GoogleCodeExporter commented
Original comment by danjaredg
on 6 Sep 2012 at 10:48
- Changed state: Fixed