Ubuntu Global Menu Support for Defold (SOLVED)

Any chance for Global Menu in Ubuntu 16.04?

JAVA_TOOL_OPTIONS="-javaagent:/usr/share/java/jayatanaag.jar $JAVA_TOOL_OPTIONS" does nothing.

1 Like

Hi @zbyti,

Would be great if there was a simple way to get Global Menu support. However, it looks like Jayatana is only targeting Swing applications, and the current editor is based on SWT (the widget toolkit used by Eclipse) which is probably why what you’re trying is not working.

1 Like

THX @Ragnar_Dahlen :slight_smile:

1 Like

@Ragnar_Dahlen Eclipse Neon have AppMenu on Ubuntu 16.04

If I run ./Defold I have AppMenu.
If I run ./Defold-linux.sh don’t.

If you run ./Defold-linux.sh modify this script if you want app menu.

function setup_ubuntu_unity() { # This is unnecessary but harmless on unaffected distributions. export UBUNTU_MENUPROXY=1 }

Hello @zbyti!

There is a problem with unity (the Ubuntu graphical shell) which causes an application to crash if a main menu contains a submenu without any items. This occurs in defold when you first open the target submenu under Project. The UBUNTU_MENUPROXY is meant to correct this problem. If you disable it, it’s possible that those problem will occur for you.

Regards,
Jakob

1 Like

Many thanks for the answer @jakob.pogulis . I run into this problem because on Mint 18 (64 bit) Defold can’t create branch then I open the project.

I like cinnamon desktop but Mint user space is a mess. On the other hand - Ubuntu with his ancient compiz technology is not what I like.

I’ll be back to Windows 10 for a while :wink:

Regards,
Bart