Audacity 3.1.3 now uses
Exec=env UBUNTU_MENUPROXY=0 audacity %F
in desktop entry file. This is not the proper way. A better solution is to write a script and set environment variables inside.
I’m using AppImageLauncher. I’ve encountered an issue about this at https://github.com/TheAssassin/AppImageLauncher/issues/490.