summaryrefslogtreecommitdiff
path: root/examples/py/simple-bar/app.py
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-19 23:42:33 +0100
committerAylur <[email protected]>2024-12-19 23:42:33 +0100
commitc5664e2941b33609de0743a8475a40b24522a3dc (patch)
tree604bdece8e3fe3bd2a286ab1e8ef07dd8d90c37c /examples/py/simple-bar/app.py
parent61637d6333bd812021763039ceea61e7f7d29dbf (diff)
update examples, fix styling
Diffstat (limited to 'examples/py/simple-bar/app.py')
-rwxr-xr-xexamples/py/simple-bar/app.py6
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:])))