diff options
Diffstat (limited to 'examples/gtk4/simple-bar/py/src/main.in.py')
-rwxr-xr-x | examples/gtk4/simple-bar/py/src/main.in.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/gtk4/simple-bar/py/src/main.in.py b/examples/gtk4/simple-bar/py/src/main.in.py new file mode 100755 index 0000000..58042f4 --- /dev/null +++ b/examples/gtk4/simple-bar/py/src/main.in.py @@ -0,0 +1,19 @@ +#!@PYTHON@ + +import gi + +gi.require_version("Gio", "2.0") + +from gi.repository import Gio +from sys import argv, path +from ctypes import CDLL + +CDLL("@LAYER_SHELL_PREFIX@/lib/libgtk4-layer-shell.so") +path.insert(1, "@PKGDATADIR@") +Gio.Resource.load("@PKGDATADIR@/data.gresource")._register() + + +if __name__ == "__main__": + from py.App import App + + App.main(argv[2:]) |