Gtk-Message: Failed to load module "appmenu-gtk-module"


#1

Running my app from a terminal i get this error:
Gtk-Message: Failed to load module “appmenu-gtk-module”
Gtk-Message: Failed to load module “canberra-gtk-module”

This is my project

if I open my ap as a non-snap I don’t have any problems


#2

Both of these messages are normal because the current desktop helpers do not include support for either module, no need to worry about them (you will notice them in other desktop applications too if you start them from a terminal).


#3

ok but i have a missing app menu in the app.


#4

do you mean the top-panel menu in unity7 (which is what appmenu-gtk provides) ?


#5


the bar with file edit etc


#6

try adding the unity7 interface to your plugs … (that gives permission to the appmenu-gtk dbus interface of the desktop)


#7

Error messages don’t necessarily mean there’s an actual problem, you should focus on missing functionalities like missing menu etc.

For global menu integration in Unity 7 desktop environment, you have to connect the snap to the unity7 interface and maybe enumerate certain supporting stage-packages


#8

I did but snapcraft.io builder won’t publish because of an error
Error:interface ‘unity’ not found in base declaration
but let me try adding 7 (as a specific version)


#9

Please, check the documentation before adding anything to the code: Interfaces - doc - snapcraft.io


#10

yeah, the interface name is explicitly “unity7” :slight_smile:
(there was a “unity8” still existing when we started which is why the interface has the explicit versioning in the name)


#11

Thx . Sorry new coder here.


#12

We all were once (and often still are in new tasks)… no need to be sorry about that :wink:


#13

Still, nothing with unity7, but at least builder compile the version with it on without errors