Hot answers tagged

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
30 votes

How do I open GTK Inspector?

I got this from https://wiki.gnome.org/Projects/GTK%2B/Inspector: GtkInspector is the built-in interactive debugging support in GTK+. It was added in GTK+ 3.14, based on a copy of the well-...
DK Bose's user avatar
  • 42.4k
27 votes
Accepted

How to fix invisible form fields in Firefox while using Adwaita Dark Theme (or any other dark theme)

I used the procedure stated in this website. Open about:config in the address bar Create a new string type preference (right mouse button > New > String) named widget.content.gtk-theme-...
luisgonzalez's user avatar
  • 1,569
21 votes
Accepted

Move GNOME file dialog buttons

This solution worked for me. Enter this line in the terminal. gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DialogsUseHeader':<0>}" And buttons are back on the ...
Nemo7's user avatar
  • 226
19 votes
Accepted

How do I make Firefox 64 use the KDE file selection dialog?

Edit: this question deals with Kubuntu 18.04. Users of Kubuntu 20.04 will find the experience very decent. This is possible in Firefox 64 with the important caveat that it is currently buggy. See the ...
DK Bose's user avatar
  • 42.4k
12 votes

Can't use GTK Inspector for gnome-terminal

I've found the solution, I'm using GTK+ 3.22 for reference, just need to turn on this setting: gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true And then the "Help" menu ...
Nelson's user avatar
  • 223
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

How can I know the display manager it's being used?

You can follow command cat /etc/X11/default-display-manager. You will get response like /usr/sbin/lightdm. It looks like: $ cat /etc/X11/default-display-manager /usr/sbin/gdm3
Rajendra Kumar Yadav's user avatar
9 votes
Accepted

How can I launch gThumb (version > 3.4.3) with light background colors in menus and browser like before?

You can run gThumb with your preferred GTK+ theme and its variant (light/dark) by the following command GTK_THEME=<Theme-Name>:<Theme-variant> gthumb for example GTK_THEME=Ambiance:light ...
pomsky's user avatar
  • 68.3k
9 votes

Cron not working, although the command works

Are you sure cron is not working? If you add a line like */1 * * * * touch /tmp/foobar123 to your crontab, then does the file appear in /tmp? If that file won't appear after a minute or so, then ...
Tomáš Pospíšek's user avatar
9 votes
Accepted

How to install GTK widget factory via Apt?

It took some digging but I finally found it in Linux Mint's forum. sudo apt install gtk-3-examples Issue gtk3-widget-factory to start it.
Quasímodo's user avatar
  • 2,007
8 votes

Reload Gtk+ 3.0 theme

You can use this bash function to reload the theme without reloading the shell, you can add it to your ~/.bashrc file. function reload_gtk_theme() { theme=$(gsettings get org.gnome.desktop....
Ikbel's user avatar
  • 185
8 votes
Accepted

How to upgrade GTK 3.18 to 3.20 on ubuntu 16.04?

If you Google this, you will find guides like this and this. In addition, you will find that this has been asked before on this very site at least twice: once in 2016 and once in 2015. Now, to be ...
Hendy's user avatar
  • 256
8 votes
Accepted

GTK warnings during Geany running

I had this problem on 20.04 (WSL). Solved by installing yaru-theme-icon: sudo apt install yaru-theme-icon The geany package should depend on yaru-theme-icon, but it doesn't. It's a package management ...
cdjc's user avatar
  • 196
8 votes

How to apply system theme to flatpak apps that use GTK4?

As of now, the flatpak Gtk4 apps only support Adwaita, Adwaita-Dark and Yaru-* (if installed) themes, but there is a workaround. You can set all GTK-4 apps to use it. To do that, you need to set the ...
matusf's user avatar
  • 291
7 votes
Accepted

How to install latest GTK for creating C programs

You are missing a dependency required to run this program. Open the terminal and type: sudo apt install libgtk-3-dev Then compile the source code test.c with the following command: gcc-5 `pkg-config -...
karel's user avatar
  • 114k
7 votes

How do I make Firefox 64 use the KDE file selection dialog?

In newer versions of Firefox, you can go to about:config and set widget.use-xdg-desktop-portal to true. It's much easier than setting the GTK_USE_PORTAL=1 environment varibable in the Firefox launcher....
Zren's user avatar
  • 215
6 votes

Turn off smooth scrolling in GTK3

I solved this by disabling animations in the gnome shell. Disabling animations will disable all animations. This setting can be changed in many different ways. For the change to take effect in gedit, ...
pm-b's user avatar
  • 154
6 votes
Accepted

Turn off smooth scrolling in GTK3

Edit the file ~/.config/gtk-3.0/settings.ini to contain the following lines: [Settings] gtk-enable-animations=0 If the file doesn't exist, create it. If the file already exists and already has a [...
Gilles 'SO- stop being evil''s user avatar
5 votes

How to fix GTK3 scrollbar behavior

For GTK2 applications, I also noticed the scrollbar-warp behavior happens with the Adwaita theme (but not with the Greybird theme). I fixed it for GTK2 by editing /usr/share/themes/Adwaita/gtk-2.0/...
Ivan Kozik's user avatar
5 votes
Accepted

Ubuntu 16.04 Gnome Conky does not work right

Conky changed the conkyrc format to lua in the recent versions, the original seamod (and 99% of all other conkys out there) still have the old format. Thankfully, user maxiwell on Github has already ...
emk2203's user avatar
  • 4,156
5 votes

Graphical User Interface

Wayland is a replacement for X11. GTK+ is still the GUI toolkit used by GNOME and some other desktop environments and there are no plans to replace it. The two big GUI libraries for Linux are Qt and ...
Florian Diesch's user avatar
5 votes
Accepted

gtk-update-icon-cache: The generated cache was invalid

You need to check two things : The name of icons directories in theme.index file like (apps/24x24, places/128x128 ... etc) if they listed in index file and dose not exist in icons directory ( or vis ...
Hayder Ctee's user avatar
5 votes
Accepted

How do I remove rounded borders from windows in Ubuntu 18.04 with GNOME shell?

Adding the following lines to ~/.config/gtk-3.0/gtk.css have made the corners square: .titlebar, .titlebar .background { border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-...
jII's user avatar
  • 1,102
5 votes
Accepted

How can I customize my GTK theme?

You can download and customize the Yaru theme from Github. Here are instructions to get you started. Install prerequisite packages to clone the repository and build the source files: apt install ...
Enterprise's user avatar
  • 12.3k
4 votes

How to add vte terminal widget in GTK3?

Vte.Terminal.spawn_sync is deprecated. So if you are using Vte version 0.48 or above, use Vte.Terminal.spawn_async instead. Here is an example of a Vte.Terminal.spawn_async: terminal.spawn_async( ...
PizzaLovingNerd's user avatar
4 votes

How to remove the scroll limit fade (edge-overshot effect)?

This is not a feature of Ubuntu, or Gnome, it's the underlying GTK3 effect triggered by the edge-overshot event https://developer.gnome.org/gtk3/stable/GtkScrolledWindow.html#GtkScrolledWindow-edge-...
ccpizza's user avatar
  • 1,452
4 votes

Installed the Arc Theme, it doesn't look right

sudo gedit /usr/share/themes/Arc-Dark/gtk-3.0/gtk.css on line 26 comment it to be like this /*outline-style: dashed;*/ save and enjoy
Naheel's user avatar
  • 369
4 votes
Accepted

Why do I have two versions of gtk installed?

They are different ABI versions of GTK+. As mentioned in comments, some things still require GTK+ 2.x, and haven't been ported to GTK+ 3.x. Likewise, you may have both Qt 4.x and 5.x installed, as ...
dobey's user avatar
  • 41k
4 votes

How do I open GTK Inspector?

Updated: 2023-01 The wiki page for the Inspector seems to be a bit out of date, and at times bugs interfere with documented functionality. What's more, a lot of this functionality is implemented ...
FeRD's user avatar
  • 235

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