Once upon a time, I've installed Pantheon desktop on Ubuntu 14.04.

And then I decided to use vanilla desktop, Unity.

So I've removed all things related with Pantheon. I can't remember the exact command, but it seems like:

sudo apt-get remove pantheon*

When I open some apps which run with GUI from terminal, an error, a warning or a message is shown.

$ gedit
Gtk-Message: Failed to load module "pantheon-filechooser-module"
$ wireshark
Gtk-Message: Failed to load module "pantheon-filechooser-module"
$ nautilus
Gtk-Message: Failed to load module "pantheon-filechooser-module"

It seems it does not affect to the actual behavior of the system. But it is really annoying to me.

Is there anyone who can give me a tiny hint to solve this problem?

  • Install pantheon and the error will go away. – Babbzzz Oct 17 '15 at 11:35
  • 3
    You will always see this message with non-gtk3 apps. It's harmless and you can ignore it. |Elementary OS Freya – daGo Feb 17 '16 at 13:26

I had the same problem! If you run the following:

env | grep -i gtk

And see the module in your path like mine:


Then it means it's being set somewhere to use the pantheon which needs to be removed. I did a quick grep and found the following:

/etc/profile.d/pantheon-filechooser-module.sh:export GTK_MODULES=pantheon-filechooser-module

So did:

sudo rm /etc/profile.d/pantheon-filechooser-module.sh

Finally - I saved my GTK_MODULES variable without the filechooser in my current session so not to have to restart: (obviously yours will be different to mine)


Job Done.

protected by Community May 11 '16 at 10:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.