Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LD_PRELOAD doesn't work with python applications #63

Open
Monsterovich opened this issue Apr 27, 2021 · 0 comments
Open

LD_PRELOAD doesn't work with python applications #63

Monsterovich opened this issue Apr 27, 2021 · 0 comments

Comments

@Monsterovich
Copy link

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

изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant