I am trying to inspect the gnome-terminal with the GTK Inspector. This inspector works on other GTK programs like gnome-calculator and gedit. However, when I try to run this on the gnome-terminal, nothing happens. I've tried the many possibilities like Ctrl+Shift+I and Ctrl+Shift+D (which never works for me) and running GTK_DEBUG=interactive gnome-terminal. The latter works for other GTK programs but not for the terminal. It also doesn't matter if I run this command from a different terminal like xterm. Any suggestions on how I can GTK Inspect the gnome-terminal?

  • 1
    I wonder if the issue is that gnome-terminal now uses a client-server architecture - so that the command gnome-terminal only actually loads the application if there are no extant gnome-terminals. Did you try closing all gnome-terminals first, or using the --disable-factory option (if your version still supports it)? See Debugging GNOME Terminal - Running a separate instance and Run true multiple process instances of gnome-terminal – steeldriver Jun 1 '16 at 12:45
  • I killed all my Gnome Terminals and ran the command GTK_DEBUG=interactive gnome-terminal from xterm. Is this what you mean? – Stan Jun 1 '16 at 19:05

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 of gnome-terminal will show a "Inspector" item you just need to click it.

This is for the VTE widget only: Alternatively, if you are using jhbuild, the vte module has a test program for the vte widget (that gnome-terminal uses) so you can run it like this:

# inside jhbuild/checkout/vte
GTK_DEBUG=interactive src/testvte
  • Wow, that was well hidden! – Costa Nov 18 '18 at 20:03

You can recompile gnome-terminal with --enable-debug passed to the ./configure step, and then it'll have a Help -> Inspector menu entry which works properly.

(I'm not sure how to inspect gnome-terminal as it is shipped by Ubuntu, or whether it is possible at all.)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.