From 87b68f23cba3ef6b733c162eeb991779220fc2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 1 Sep 2021 18:57:57 +0200 Subject: [PATCH] meson-pgo: headless-sway: export XDG_RUNTIME_DIR --- meson-pgo.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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)