gtk3-nocsd icon indicating copy to clipboard operation
gtk3-nocsd copied to clipboard

LD_PRELOAD doesn't work with python applications

Open Monsterovich opened this issue 4 years ago • 0 comments

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()

изображение

Monsterovich avatar Apr 27 '21 08:04 Monsterovich