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?
|
|
|||
|
I've found the solution, I'm using GTK+ 3.22 for reference, just need to turn on this setting:
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:
|
||||
|
|
|
You can recompile gnome-terminal with (I'm not sure how to inspect gnome-terminal as it is shipped by Ubuntu, or whether it is possible at all.) |
|||
|
|
gnome-terminalonly actually loads the application if there are no extant gnome-terminals. Did you try closing all gnome-terminals first, or using the--disable-factoryoption (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:45GTK_DEBUG=interactive gnome-terminalfromxterm. Is this what you mean? – Stan Jun 1 '16 at 19:05