gtk3-nocsd
gtk3-nocsd copied to clipboard
LD_PRELOAD doesn't work with python applications
All python applications which use gtk3 and CSD are not affected by LD_PRELOAD. Here's an example:
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GtkSource
if __name__ == "__main__":
window = Gtk.Window()
header = Gtk.HeaderBar()
header.set_title("CSD")
header.set_subtitle("is still there!")
header.set_show_close_button(True)
window.set_titlebar(header)
vbox = Gtk.VBox()
source = GtkSource.View()
vbox.add(source)
window.add(vbox)
window.show_all()
window.show()
window.connect("destroy", lambda e: Gtk.main_quit())
Gtk.main()
