aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-01 16:57:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-12 08:39:43 +0000
commit87b68f23cba3ef6b733c162eeb991779220fc2f1 (patch)
tree16529e5e57389d275a83b3ede10bdca19b0ca9b3
parentmeson-pgo: use as little path quoting as possible (diff)
meson-pgo: headless-sway: export XDG_RUNTIME_DIR
-rwxr-xr-xmeson-pgo.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson-pgo.sh b/meson-pgo.sh
index 9ad2ad26..86a1483f 100755
--- a/meson-pgo.sh
+++ b/meson-pgo.sh
@@ -106,11 +106,18 @@ if [ ${do_pgo} = yes ]; then
full-headless-sway)
./footclient --version
+
+ runtime_dir=$(mktemp -d)
sway_conf=$(mktemp)
+
echo "exec ${build_dir}/foot -o tweak.render-timer=log --config=/dev/null --term=xterm sh -c \"${source_dir}/scripts/generate-alt-random-writes.py ${script_options} ${tmp_file} && cat ${tmp_file}\" && swaymsg exit" > "${sway_conf}"
+ export XDG_RUNTIME_DIR=${runtime_dir}
export WLR_BACKENDS=headless
+
sway -c "${sway_conf}"
+
rm "${sway_conf}"
+ rm -rf "${runtime_dir}"
;;
partial)