507 votes

Failed to load module “canberra-gtk-module” .... but already installed

install gtk and gtk3 module should solve it. sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
croesus's user avatar
  • 5,187
164 votes
Accepted

pkg-config not finding gtk+-3.0

I only had the normal gtk3 files installed, not the developement files needed for cmake to make use of: sudo apt-get install build-essential libgtk-3-dev
Karl Morrison's user avatar
89 votes

gksu: Gtk-WARNING **: cannot open display: :0

If running Ubuntu 17.10 or newer, this issue can arise when an application has not been updated with full support for Wayland. As a workaround until the application is updated, you can run xhost +SI:...
Cutton Eye's user avatar
  • 1,211
79 votes

Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita", error on executing the the python script with pygtk module

I had the same issue sudo apt install gnome-themes-standard Fixed the issue.
ryanpattison's user avatar
52 votes

How can one make Firefox ignore my GTK theme entirely?

Permanent solution: You can specify a light GTK theme to use for rendering webpages in about:config. This is great because your system theme will still apply for menus etc. but the webpages will be ...
rviertel's user avatar
  • 759
49 votes

Firefox 57 shows dark input boxes/dropdown menus with dark text on Gnome dark themes

I found the best solution was to add a string value in about:config for widget.content.gtk-theme-override to override the GTK theme. You can use a related theme with light text boxes (obviously this ...
Betty Von Schmartenhausen's user avatar
41 votes

Failed to load module appmenu-gtk-module + canberra-gtk-module

To install the GTK2 and GTK3 modules: sudo apt-get install appmenu-gtk2-module appmenu-gtk3-module
Marcos Jacoby's user avatar
40 votes

Failed to load module “canberra-gtk-module” .... but already installed

WARNING: User Paparazio reported that this command removed a lot more software than he was expecting. See his question for details. – wjandrea Jun 8 2017 at 20:29 I had the same problem and solve it ...
Quentin's user avatar
  • 1,307
40 votes

ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

Try this: sudo apt-get install libglib2.0-0 Then, run your command again. If that doesn't do the trick, try this: sudo apt-get install libglib2.0-0:i386 I'm on a 64-bit computer, but the tool I'm ...
Janin's user avatar
  • 501
26 votes
Accepted

error message when running zenity under 16.04: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged

Ignore it. It's a warning, not an error. The application works, it's just not coded with best practices in mind, as it seems. You would have to modify zenity's source code to implement the fix ...
Byte Commander's user avatar
  • 108k
24 votes
Accepted

Qt apps stopped inheriting GTK themes

On Ubuntu 17.10 Qt4 apps do inherit the global GTK theme, while Qt5 don't. Since libqt5libqgtk2 isn't available in the official Ubuntu repositories anymore, we have to use another workaround: Install ...
DMT's user avatar
  • 824
22 votes

Failed to load module "xapp-gtk3-module"

Installing xapp installs the missing modules and removes the warning sudo apt install xapp Pay attention that You need to install it with apt, not snap
Ram Ramu's user avatar
  • 321
20 votes
Accepted

Disable system style for Firefox form input elements

The CSS-based solutions are tricky to get right, in my experience. The one in Michael's answer worked on some sites but not all. In Firefox 60, there's an easier solution. Go to about:config and ...
John Lindgren's user avatar
19 votes

Gtk-Message: Failed to load module "overlay-scrollbar" Ubuntu 17.10

In my computer with Ubuntu 16.04, I solved it installing the package overlay-scrollbar-gtk2: sudo apt-get install --reinstall overlay-scrollbar-gtk2
Joan's user avatar
  • 191
18 votes

Failed to load module "canberra-gtk-module"

This question is 4 years and 8 months old. It is now July 2017. On a Raspberry Pi 3B running Raspbian Jessie and Ubuntu 16.04 LTS I was getting this error. Failed to load module “canberra-gtk-...
SDsolar's user avatar
  • 3,169
17 votes
Accepted

GTK bindings for Fortran

I confirm there are no official Fortran bindings provided by the GTK Project. I was one of the founders of the gtk-fortran project in 2011 and I have maintained it since (the version 4.5 should be ...
vmagnin's user avatar
  • 186
16 votes
Accepted

Can't Run GTK on WSL, Display Error

WSL doesn't come with an X server by default, because Windows doesn't use an X server. Which would also be why xhost failed to do anything remotely useful. In order to do something like this, you ...
Kaz Wolfe's user avatar
  • 34.1k
15 votes

GTK Ubuntu 17.10

By default 17.10 does not allow root to access your display. Try the command xhost +si:localuser:root then launch gedit with root privilege.
ravery's user avatar
  • 6,874
15 votes
Accepted

How do I change colors in Zim (wiki editor) running on Kubuntu 18.10?

I'm still on Kubuntu 18.04 but it appears that the version of Zim is the same in 18.10. Zim seems to be a gtk2 application Kubuntu allows users to choose different gtk2 and gtk3 (and qt) themes. Open ...
DK Bose's user avatar
  • 42.6k
13 votes

How can you enable GTK3 themes' dark theme mode when using Unity 7?

You can enable 'Global Dark Theme' mode on Unity 7, the same way it's enabled on Gnome Shell. Just install GNOME Tweak Tool by clicking here: Or run this in Terminal: sudo apt install gnome-tweak-...
Rohan 'HEXcube' Villoth's user avatar
12 votes

How do I refresh the icon cache?

You need to: Update the timestamp on the top-level icon directory Run gtk-update-icon-cache. Note: hicolor is the default theme which app developers should use. If you're making an icon theme, ...
Brendan Long's user avatar
12 votes
Accepted

How to (quickly) switch to dark mode in Ubuntu with GNOME and to make it fully dark?

For easy and quick toggling from Dark to Light theme and vice versa install this GNOME extension: Night Theme Switcher (GNOME Shell Extension), it has a lot of settings options incl. automated switch ...
Filbuntu's user avatar
  • 13k
11 votes

How can one make Firefox ignore my GTK theme entirely?

UPDATE: My original answer actually gets overwritten when Firefox updates. My current (permanent) solution Edit ~/.mozilla/firefox/abcdef.default/chrome/userContent.css (where abcdef is a random ...
barro32's user avatar
  • 250
11 votes

How do I enable Emacs keybindings in apps, such as Google Chrome?

As of Chrome 59, which switched to gtk3, set gtk-key-theme-name to Emacs in ~/.config/gtk-3.0/settings.ini: [Settings] gtk-key-theme-name = Emacs
xn.'s user avatar
  • 621
11 votes

error message when running zenity under 16.04: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged

It seems that the Gtk devs decided to add this warning which affects a number of packages. We just have to wait for the Zenity dev to catch up and fix Zenity. With the bash shell (this is not Posix-...
Dave Rove's user avatar
  • 281
11 votes
Accepted

Illogical GTK theme behaviour on Ubuntu 18.04

It seems those are applications installed as snap packages. You may verify it by running snap list The snap execution environment doesn't see any of the themes on your system (local or system-wide)....
pomsky's user avatar
  • 68.6k
11 votes
Accepted

How to fix error: Failed to load module "canberra-gtk-module"

Not a an issue unique to Matlab, but Ubuntu. It is solved by executing: sudo apt-get install libcanberra-gtk-module
Teo Protoulis's user avatar
11 votes
Accepted

Will Ubuntu 22.04 Carry GTK4?

Ubuntu 21.04 already has GTK4 packages in addition to GTK3, and so does the upcoming 21.10. Then, 22.04 would certainly have GTK4, but it is not possible to predict the version of GTK4 it would have. ...
Archisman Panigrahi's user avatar
10 votes

Can I choose to not sort directories before files on file open dialogs?

I have a solution for GTK applications, and a solution for dolphin. I've never figured out how to fix this for non-GTK applications (e.g., LibreOffice). For GTK: Fire up dconf-editor. Navigate to ...
JD Baldwin's user avatar
10 votes
Accepted

Message overflow in notification bubble

I posted this a while ago on a (now) deleted Q/A. Maybe it is useful to you. A patch to allow (very) long messages The "patch" below will allow you to have notifications as long as it takes on your ...
Jacob Vlijm's user avatar
  • 83.8k

Only top scored, non community-wiki answers of a minimum length are eligible