diff options
author | Aylur <[email protected]> | 2024-12-20 22:27:25 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-20 22:27:25 +0100 |
commit | 53bfc0929d62263547c1282b388040b9616a377e (patch) | |
tree | 2b2c776ecc57209179203eb7b8638ee7502a286e /examples/py/simple-bar/app.py | |
parent | 2f09ed83386b334f0dfb7f376b99739b15e49fc9 (diff) | |
parent | d7d11b341db85ce9768fa06b6f225d713621ec56 (diff) |
Merge branch 'main' into feat/jsx-gtk4
Diffstat (limited to 'examples/py/simple-bar/app.py')
-rwxr-xr-x | examples/py/simple-bar/app.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/py/simple-bar/app.py b/examples/py/simple-bar/app.py index 17b6782..d95dc0e 100755 --- a/examples/py/simple-bar/app.py +++ b/examples/py/simple-bar/app.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import sys import versions +import subprocess from gi.repository import AstalIO, Astal, Gio from widget.Bar import Bar from pathlib import Path @@ -18,9 +19,8 @@ class App(Astal.Application): def do_activate(self) -> None: self.hold() - AstalIO.Process.execv(["sass", scss, css]) + subprocess.run(["sass", scss, css]) self.apply_css(css, True) - print("hello") for mon in self.get_monitors(): self.add_window(Bar(mon)) @@ -30,7 +30,7 @@ app = App(instance_name=instance_name) if __name__ == "__main__": try: - print(app.acquire_socket()) + app.acquire_socket() app.run(None) except Exception as e: print(AstalIO.send_message(instance_name, "".join(sys.argv[1:]))) |