27 votes

Scrollbar moves to where I click

I had the same issue on Firefox 48, and this answer worked for me: Create ~/.config/gtk-3.0/settings.ini and add [Settings] gtk-primary-button-warps-slider = false I'm using XFCE, but Firefox is ...
anol's user avatar
  • 713
25 votes

What is difference between GTK and QT applications?

Another important aspect to consider is the Qt licensing link to their license disclosure which is explicitly set to be freely available to most non-profit making projects, but a commercial ...
Vass's user avatar
  • 5,381
21 votes

How can I make text in meld readable?

At least from Meld 3.16.4 support different color schemes. See Meld > Preferences: (possibly this change was introduced in earlier versions) Note: It is also possible to force a specific theme ...
Tombart's user avatar
  • 2,860
17 votes

Scrollbar moves to where I click

You get the old page-up/down behavior via right-clicking on the scroll bar.
maxschlepzig's user avatar
  • 57.6k
15 votes
Accepted

How to add QT_QPA_PLATFORMTHEME=qt5ct environment variable in Arch Linux?

I'll answer with a full guide to help the ones who have not gotten this far: Install qt5ct (sudo pacman -S qt5ct) You might want to install a Qt theme, that can be done by sudo pacman -S breeze for ...
tempacc's user avatar
  • 307
12 votes
Accepted

How can I run Firefox on Linux headlessly (i.e. without requiring libgtk-x11-2.0.so.0)?

I know this is a rather old question, but I wanted to add a more recent answer as I got directed here by Google and had to search for a while to find the answer. As of Firefox 57, you can run in ...
AlaskaJoslin's user avatar
12 votes
Accepted

Change GTK theme from command line

Open ~/.config/gtk-3.0/settings.ini and change the line that begins with gtk-theme-name
Wolf's user avatar
  • 1,567
10 votes
Accepted

Can I mark files as recently-used from the command line?

The following Python script will add all the files given as arguments to the recently-used list, using GIO: #!/usr/bin/python3 import gi, sys gi.require_version('Gtk', '3.0') from gi.repository ...
Stephen Kitt's user avatar
8 votes

What does the plus, "+", in GTK+ mean and what is its history?

I emailed Peter Mattis (co-creator of GTK/GTK+) with this question and his reponse was: GTK was the first version of the toolkit used in pre-1.0 versions of the GIMP. At some point, the ...
Elijah Lynn's user avatar
  • 1,045
7 votes

gtk-launch only works when present working directory is Desktop

To make this work, you have to satisfy two requirements: Your myapp.desktop file should reside in one of several directories (not exclusively /usr/share/application). These depend on your Linux ...
sancho.s ReinstateMonicaCellio's user avatar
7 votes
Accepted

What does the plus, "+", in GTK+ mean and what is its history?

They've added the + when they redesigned the original GTK (the Gimp ToolKit based on Motif) to be object oriented (meaning something like GTK on steriods I guess...) See also wikipedia page on GIMP ...
don_crissti's user avatar
  • 82.9k
6 votes
Accepted

Maintaining a single binary across Debian distributions

As has been said in the comments, the only reliable way to build a single binary which will work on different releases of Debian (or any Linux distribution) is to build it statically. This is well-...
Stephen Kitt's user avatar
6 votes
Accepted

How can I quickly navigate in the GTK file chooser?

There are known shortcuts to edit the location bar: Ctrl+L, /, ., ~.
Munzir Taha's user avatar
  • 1,490
5 votes

Qt5 applications don't use gtk style on Liux Mint

I was struggling with getting Qt5 to use the native style on Linux Mint (18, Cinnamon) for a Qt5 installation I downloaded myself. What seems to work in the end is $ unset QT_STYLE_OVERRIDE I think ...
Adversus's user avatar
  • 159
5 votes

How can I make text in meld readable?

only leting a update... The 3.18 version will not show preferences to change your theme. but by dconf-editor, you can access the meld configuration and set style-chema to 'meld-dark' ... and be ...
Tiago Oliveira's user avatar
5 votes

Scrollbar moves to where I click

I am not sure of the general case , but in FireFox, there is a configuration setting ui.scrollToClick=0 , which gives the behaviour you want. If ui.scrollToClick=1 , then clicking the scrollbar will ...
Prem's user avatar
  • 3,342
5 votes
Accepted

How to install `gtk+2.0` on Debian Sid?

To install gtk+2.0 package you should run: apt-get install gtk2.0 The development files for the GTK+ library can be installed through : apt-get install libgtk2.0-dev
GAD3R's user avatar
  • 66.8k
5 votes
Accepted

How to get traditional scrollbars in GTK 2 and 3 apps in Debian 10?

GTK+2 I haven’t had any problems with scrollbars in GTK+2. Perhaps the theme you use goes to extra lengths to “damage” them. Try switching to a different theme; I use GreenMotif for example. For extra ...
mirabilos's user avatar
  • 1,733
5 votes
Accepted

GTK FileChooser causes crashes in several programs

I experienced this bug in 1.01 AppImage of Inkscape. Mike Nealy gives an explanation and workaround in a bug report here I've copied his workaround below: Simply updating the schema to contain show-...
JJones's user avatar
  • 256
5 votes
Accepted

How to focus program window instead of spawning new one if it's already open

I've found the answer. This problem turns out not a specific DE problem. It's the behavior of the app itself which is gnome-calculator. I've found two methods(or workarounds) for doing this: Using ...
Jastria Rahmat's user avatar
5 votes
Accepted

Error With gtk-launch: Unable to find terminal required for application

As of 18-09-2023: The list of hardcoded terminals here is static const struct { const char *exec; const char *exec_arg; } known_terminals[] = { { "xdg-terminal-exec", NULL }, ...
martor's user avatar
  • 66
5 votes
Accepted

Change border color around window (edit GTK theme)

What worked for me is adding this to the gtk.css file (which for me is located in ~/.config/gtk-3.0) decoration { border: 1px solid grey; background : grey; } It makes the border of the ...
omnikin's user avatar
  • 96
5 votes
Accepted

How can I paste full path strings in the GNOME File Selection Dialog on RHEL?

Usually the file managers have the feature to type/autocomplete paths by pressing Ctrl+L. And it seems to be working both GTK and QT based applications. I tested in KDE and GNOME as well and both work....
Edgar Magallon's user avatar
4 votes

Show file system instead of "places" in gtk file chooser

GTK File Chooser? A perfect solution would be an upstream commit/patch to at least gtkfilechooserdialog.c and gtkfilechooserwidget.c to implement additional features answering this question needs and ...
intika's user avatar
  • 14.4k
4 votes

GTK - Enable/set dark theme on a per-application basis

If somebody still need it, I've created simple app that will automatically set dark theme for specified apps. You can find it here: https://github.com/galczo5/gnome-dark-apps
galczo5's user avatar
  • 41
4 votes

How to install gtk3 in CentOS?

Following command worked for me: sudo yum install gtk3-devel Kindly note that I was using Python 3.6.3.
ponoop patro's user avatar
4 votes

What does the plus, "+", in GTK+ mean and what is its history?

2019.02.06 - Announcement - Project rename GTK+ to GTK. Hi all; tl;dr: GTK is GTK, not GTK+. The documentation has been updated, and the pkg-config file for the future 4.0 major release is now ...
Elijah Lynn's user avatar
  • 1,045
4 votes
Accepted

gnome/gtk: disable middle click paste via terminal

Underneath, Tweaks alters the dconf key /org/gnome/desktop/interface/gtk-enable-primary-paste You can do the same in terminal, either via dconf (e.g. to turn it off): dconf write /org/gnome/desktop/...
4 votes

Origins of the "save changes" modal dialog's use of "close without saving", its lack of keyboard accelerators, and how to interact with these dialogs

This dialog is indeed provided by Gtk. It does have accelerators; they aren’t indicated by default, but if you hold Alt down you’ll see them. In Gedit, they’re w for “Close without Saving”, c for “...
Stephen Kitt's user avatar

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