GTK_DEBUG=interactive is ignored by Python applications
Example application:
#!/usr/bin/env python3
import sys
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class Application(Gtk.Application):
def __init__(self):
super().__init__(application_id='org.example.Test')
def do_startup(self):
Gtk.Application.do_startup(self)
self.window = Gtk.ApplicationWindow(application=self, title='Test')
def do_activate(self):
Gtk.Application.do_activate(self)
self.window.present()
application = Application()
application.run(sys.argv)
Command:
$ GTK_DEBUG=interactive ./test.py
The debug window fails to open, same for other Python applications (eg. gnome-music, MyPaint, cinnamon-settings).
The Ctrl+Shift+D key combination still works.
Tested on Fedora and Ubuntu.