We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b1da89 commit 265a9b0Copy full SHA for 265a9b0
postbuild.sh
@@ -2,9 +2,17 @@
2
# Use run this script after building trawld to generate updated
3
# Introspection xml for the dbus service
4
5
+./target/release/trawld &
6
+name_acquired=$?
7
+sleep 0.5
8
dbus-send --session \
9
--dest=org.regolith.Trawl \
10
--type=method_call \
11
--print-reply \
12
/org/regolith/Trawl \
13
org.freedesktop.DBus.Introspectable.Introspect | tail -n +3 | head -n -1 > ./client_api/service.xml
14
+
15
+# kill trawld if it was not running before
16
+if [ $name_acquired -eq 0 ]; then
17
+ killall trawld
18
+fi
0 commit comments