Interestingly enough, when I write the app in vala instead, I get the same error message but the appmenu stays functional.
Interestingly enough, when I write the app in vala instead, I get the same error message but the appmenu stays functional.