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
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-...
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-...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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
...
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.
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....
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 ...
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 ...
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 ...
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 -...
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....
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, ...
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 [...
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/...
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 ...
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 ...
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 ...
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-...
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 ...
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(
...
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-...
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
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gtk3 × 397themes × 102
gtk × 78
gnome × 72
python × 60
application-development × 50
unity × 25
gtk-2 × 17
14.04 × 14
nautilus × 14
quickly × 14
16.04 × 13
firefox × 13
gui × 13
pygtk × 13
python3 × 12
css × 12
glade × 11
20.04 × 10
11.10 × 10
customization × 10
pygi × 10
12.04 × 8
apt × 8
package-management × 8