Questions tagged [gtk]

Questions about the GTK+ graphical user interface toolkit. Used by desktops such as Cinnamon, GNOME, XFCE, Budgie, Mate, and Unity.

Filter by
Sorted by
Tagged with
11 votes
2 answers
32k views

Can't Run GTK on WSL, Display Error [duplicate]

I'm using WSL on Windows 10. I've installed gtkwave through the terminal, but I am unable to run it. My system gives me the following error: Could not initialize GTK! Is DISPLAY env var/xhost set? ...
0 votes
0 answers
832 views

How to get rid of titlebar?

I tried this but it didn't work. I changed the file in: /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml and In my appearance gui window it says that I'm using Ambiance theme. How can I get ...
3 votes
2 answers
10k views

Gtk-warning cannot open display Windows Ubuntu

As a classroom for learning Unix/Linux, I'm using Microsoft's Ubuntu App in Windows 10. I want to run: gedit somefile.txt But I get the following: Failed to connect to Mir: Failed to connect to ...
3 votes
1 answer
114 views

Can running gtk app in kde via flatpak cause issues in KDE?

I am very new to linux so this is probably a silly question. I am getting used to the various desktop environments, and different frameworks around linux. I am using KDE (on kubuntu) and installing an ...
0 votes
1 answer
44 views

How can I customize the GTK desktop title bar?

How can I customize the GTK title bar for the Gnome/Unity desktop, in Ubuntu 22.04? I have several VMs running under VirtualBox, all in fullscreen mode (which shouldn't be significant) and I want to ...
0 votes
1 answer
75 views

QT Applications Not Adhering to GTK Theme After Upgrading to Ubuntu 23.10

Hello Ubuntu community, I recently upgraded my system from Ubuntu 22.04 to 23.10 and encountered an issue with QT applications. Despite installing Kvantum and attempting to change the theme, these ...
5 votes
3 answers
7k views

Where are GTK_IM_MODULE and GTK_MODULES set?

When starting Eclipse for the first time in my Ubuntu 20.04, I got a warning (which actually seem to be 2 warnings) ***WARNING: Detected: GTK_IM_MODULE=xim. This input method is unsupported and can ...
0 votes
3 answers
7k views

How to receive/read raw file sent using Gtkterm thru serial?

I've downloaded Gtkterm in 2 desktop systems each with a RS-232 serial port. I'm attempting to transfer a simple .txt file between the 2 systems thru one of the available serial ports. The 2 systems ...
5 votes
1 answer
471 views

How to prevent GTK inspector from opening when opening an app from the terminal?

Very often, when I open an app through the terminal, the GTK inspector also gets opened for that app. Firefox doesn't seem to and VS Code usually closes it on its own. But otherwise, running ~$ vlc or ...
4 votes
2 answers
1k views

Meaning of GTK critical stderr message

Only slightly worried about this, but I don't like the word critical.I uninstalled Evolution and reinstalled it, got it to work by removing 4 files in the /.conf folder. Everything is working fine but ...
0 votes
1 answer
73 views

GTK2 applications broken after upgrade to 22.04

After I upgraded to Ubuntu 22.04 the rendering of GTK2 applications (e.g. GIMP & Chromium) is totally broken. GTK3 applications on the other hand are working fine. This is gtk-demofrom gtk2.0-...
3 votes
1 answer
6k views

Moving the menu bar to top bar ubuntu 20.10

Is it possible to move the menu bar up in Ubuntu 20.10 to save useful space on the screen and make the application look much better? For example: I tried this solution, but nothing happens when I run ...
4 votes
1 answer
4k views

VMWare Installer unable to load gtk: No module named gtk, falling back to console

I'm new to Ubuntu (20.10) and just installed it on my Raspberry Pi 400. I have my VMWare-Horizon-Client-2006-8.0.0-16522670.x64.bundle in the home directory. I'm following this guide Install or ...
0 votes
2 answers
4k views

Why aren't my themes showing up in Ubuntu 20.04 Tweaks?

I recently installed Ubuntu 20.04.2 LTS. I have not upgraded from a previous LTS version, it's a completely fresh install. I downloaded dconf and all its extensions, and in Tweaks, my user theme ...
3 votes
2 answers
1k views

Ubuntu 22.04 change scrollbar width

In Ubuntu 22.04 I have tried to edit the Yaru-blue theme gtk.css file to make the scrollbar wider. I entered sudo gnome-terminal to open a second terminal as root. In that root terminal I entered cd /...
7 votes
2 answers
7k views

gtk.css - How to add blurry background effect?

How to add blurry glass effect into the themes? (CSS3 supports gaussian blur with blur(1px); on many browsers) When I drop the opacity, I'm getting a result like this: But I want a blur effect like ...
0 votes
2 answers
295 views

Gtk desktop app delayed on first launch (20.04)

I have a Gtkmm desktop app that requires root access. It worked fine on 18.04 using Lxqt-sudo but after upgrading to 20.0.4, it takes ~30 seconds to open only the first time after booting. In addition,...
4 votes
1 answer
7k views

How to troubleshoot xdg-desktop-portal in i3 wm?

I am troubleshooting the known "Firefox cannot open file dialogs" error, with Firefox printing this message on every attempt: Gtk-WARNING **: 22:45:36.767: Can't open portal file chooser: ...
0 votes
1 answer
143 views

How to install gtk-recordmydesktop?

I've upgraded Linux to the newest version recently, and re-installed recordmydesktop, but I want to install gtk-recordmydesktop, the one that allows you to pause it and select what part of the screen ...
0 votes
0 answers
216 views

gnuradio-companion will not run due to gtk_init error

My issue is very similar to this issue, however I am running gnuradio on Ubuntu local to my windows machine, rather than docker. When I enter the command gnuradio-companion &, I get the following ...
51 votes
3 answers
89k views

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

I recently added the the Macbuntu theme in my Ubuntu 16.04 from the site [Noobslab][1], In am learning GTK+ for Python too (PyGTK), earlier when I ran the test programs I made run quietly without ...
0 votes
1 answer
88 views

Changing GTK Theme From Within GTK Application

I have an application written in GTK and I was just playing around with theme changes via GTK Inspector. I even explored other themes available from GitHub. Is it possible to give an end user of my ...
1 vote
0 answers
69 views

Warnings when saving a figure with `matplotlib`

I have a simple matplotlib script: import matplotlib.pyplot as plt plt.plot([1, 2], [1, 2], c="b") plt.savefig("./fig.png") When I run the script, the image is saved okay, but I ...
0 votes
0 answers
32 views

Identify cflag, libs for a make

I'm trying to build a package from sourceforge that made use of GTK2+. I'm running Ubuntu 22.04 which has GTK4 installed. I've changed the references to GTK2+ to GTK4. But I cannot figure out what ...
0 votes
1 answer
118 views

Problems with libgtk-3-dev and libgtk-4-dev

I recently installed the libgtk-3-dev/libgtk-4-dev apt packages on my machine. When using the <gtk/gtk.h> header in my C code and compiling, GCC throws an error saying that it cannot find the ...
0 votes
1 answer
191 views

Installing libgkt-4-dev on Ubuntu 23.10 results in libxfixes3 version mismatch

I'm trying to learn gtk4 application development, but even after a bunch of various attempts to fix it, sudo apt install libgtk-4-dev still returns the following output: Reading package lists... Done ...
8 votes
2 answers
4k views

How to control gnome-terminal from Python script?

I am developing an application in PyGtk, and would like to launch a gnome-terminal and output commands to it. My user should then be able to modify the command, or maybe ignore using the up arrow ... ...
1 vote
0 answers
80 views

Nautilus auto refresh issue

After update to last version of Ubuntu, Nautilus not work correct. It not automatically refresh, if I delete or replace file. It need press CTRL+R to correct display. On video I press „delete“ and ...
1 vote
2 answers
6k views

GTK+ Themes not showing up

I downloaded some themes from gnome-look.org and I extracted and put them in /usr/share/themes folder and when I opened gnome-tweak-tool windows theme was working but GTK+ themes section was showing ...
37 votes
5 answers
31k views

How to stop gedit (and other programs) from outputting GTK warnings and the like in my terminal?

I am running the awesome window manager on trusty after having upgraded from raring. My desktop environment intentionally does not have all the Gnome / Freedesktop daemons running — I don't want them. ...
0 votes
0 answers
52 views

Customize ".config/gtk-3.0/gtk.css" file based on individual applications

Is it possible either to have different gtk.css files to be loaded when different applications launches (e.g. Gedit, Gnome-terminal, Nautilus, etc.), or have specific tags in the file .config/gtk-3.0/...
0 votes
0 answers
39 views

How can I let the file date be formatted according to ISO 8601 also in load/store dialogues

I am using Xubuntu 22.04. I have added a line alias date='date -Iseconds' to /etc/bash.bashrc in order to let file dates be formatted according to ISO 8601 (YYYY-MM-DDThh:mm:ss) Further I have ...
19 votes
3 answers
44k views

Failed to load module "xapp-gtk3-module"

I was trying to open flameshot app in Ubuntu 20.04 and got this error Gtk-Message: 21:47:04.722: Failed to load module "xapp-gtk3-module" I checked many other posts but nothing worked so ...
0 votes
1 answer
384 views

How change color of titlebar buttons on inactive windows using css?

So I wrote my own gtk.css in ~/.config/gtk-3.0 to override the installed theme, But now i want to change the color of buttons in inactive windows. button.titlebutton { min-height: 16px; min-width: ...
3 votes
1 answer
6k views

Trying to change scroll bar width in Ubuntu 20.04

I have found numerous suggestions on how to do this by editing the gtk.css file in the Theme folders. However, when I try to edit the files, they are read-only and appear to be in a read-only disk. ...
0 votes
0 answers
117 views

How to activate/install scrollbar steppers 22.04

Scrollbars used to have steppers that could be enabled with widget.non-native-theme.gtk.scrollbar.allow-buttons True in the appropriate file. I cannot find any way to do this in 22.04 . I can ...
1 vote
0 answers
176 views

Why is KDE's GTK theme overriding Microsoft edge's theme?

I am currently dual booting windows 11 and kubuntu and the problem arises in kubuntu. If you go into the appearance tab of ms edge settings. You can see 3 options: GTK, Light and Dark. I am using a ...
5 votes
4 answers
3k views

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

In Ubuntu 16.04 LTS and before, the gThumb application (version 3.4.3) has a light background in its menus, its browser and its dialogues – like white or light grey. So the gThumb application fits ...
8 votes
2 answers
21k views

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

Is there a way to (quickly) turn on a dark mode in Ubuntu with GNOME, e.g. 18.04 and higher? And how is possible to have a dark mode of the different apps? I agree with this article: Ubuntu Needs to ...
76 votes
6 answers
191k views

Is there a way to know which GTK version is installed using the command line?

Is there a way to know which GTK version is installed using the command line? I am working on Ubuntu 11.10.
0 votes
0 answers
176 views

Dark theme in applications not consistent with chosen custom theme - Ubuntu 22.04

So I like to use a custom theme. But I also like to switch between light and dark themes depending on the room illumination level to preserve my eyes. So I use "Materia-dark-compact" for the ...
34 votes
4 answers
79k views

How do I refresh the icon cache?

First of all, I'm not 100% positive that the main question I've written here is actually the problem, but I have a hunch that it is. I've wrote a simple Gtk# application in Mono awhile ago, and gave ...
0 votes
1 answer
326 views

Firefox and other non-gtk applications do not adopt gtk theme

I applied a GTK 3.20 theme by EliverLara github repo following all the instructions. The theme was applied, but Firefox, and probably other non-GTK apps, do not adopt this theme. EliverLara also has ...
0 votes
0 answers
62 views

Web Browser and Ubuntu Software not picking up gtk theme

I am using Ubuntu 22.04.3, and I tried to switch the default theme to "this theme". Other than my web browser and the Ubuntu Software application it seems to be quite consistent elsewhere. ...
5 votes
2 answers
1k views

GTK bindings for Fortran

Have seen that GTK has binding for different language preferences - C, C++, Python. Does it have bindings for Fortran though ? Have come across gtk-fortran library, but do not know whether it is part ...
0 votes
0 answers
81 views

App status icon not showing on 20.04

I have a test app built on Ubuntu 22.04 using gtk3 that basically does this to create a status icon with an attached menu: #include <gtk/gtk.h> //#include <glib/glib.h> static void ...
0 votes
0 answers
22 views

How to install gtkesc,gtklev and gtk4dg?

I want to install rw05 in my ubuntu. In the readme file they are recommending this packages over other version. Is there any way to find them or to compile them?
2 votes
1 answer
1k views

Scrollbar width in Qt applications

I have made the scrollbar width for Gtk applications wider, Create a file called ~/.config/gtk-3.0/gtk.css Containing scrollbar slider { /* size of the slider / min-width: 20px; min-height: ...
1 vote
0 answers
79 views

Changing font styles of lightdm-gtk-greeter

I can change my font using the following option in lightdm-gtk-greeter.conf: font-name = ... But I'm not sure how to change the size or weight. I tried putting the following CSS in my GTK theme: #...
1 vote
0 answers
365 views

Ubuntu 23.04 MySQL Workbench CTD - Gtk-CRITICAL Errors

System Information Operating System: Kubuntu 23.04 GTK 3.24.37-1ubuntu1 KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.104.0 Qt Version: 5.15.8 Kernel Version: 6.2.0-26-generic (64-bit) Graphics ...

1
2 3 4 5
24