When I try to run a python application which uses a pyplot-window, I get a warning in the command line:
Gtk-Message: Failed to load module "pantheon-filechooser-module"
How can I fix it, and what causes it?
elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up.Sign up to join this community
Pantheon Files (the default file manager) contains a custom GTK+ module called
It's shipped on up-to-date systems, but it's not activated yet (currently, the default GTK+ file chooser dialog is still in use). That's most likely the reason it fails to load. Additionally, it might fail because it is a GTK+2 application.
On the other hand, it might be possible you removed Pantheon files. If that's the case, it might be the (other) reason the module fails to load, because it's not installed on your system.
You have two options:
1."You will always see this message with non-gtk3 apps. It's harmless and you can ignore it."
sudo rm /etc/profile.d/pantheon-filechooser-module.sh