Abusing Exec for environment variables in AppImage

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.

Filed a bug for it: https://github.com/audacity/audacity/issues/2498

Apparently it is the proper way and AppImageLauncher is making bad assumptions. Audacity 3.2 has a workaround for it though.