~mil/sxmo-devel

sxmo-utils: sxmo_init.sh: use mkrundir if available v1 NEEDS REVISION

Willow Barraco: 1
 sxmo_init.sh: use mkrundir if available

 1 files changed, 5 insertions(+), 0 deletions(-)
#1178150 test.yml success
I've merged the patch with the reviewed change. Thanks!
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/50441/mbox | git am -3
Learn more about email & git

[PATCH sxmo-utils] sxmo_init.sh: use mkrundir if available Export this patch

mkrundir is a simple program by whynothugo that simply create the
rundir.

This patch is enough for Sxmo to use /run/user-$uid as XDG_RUNTIME_DIR. Even if
this is still less common that /run/user/$uid, it still is preferable, and more
compatible than our /dev/shm/user/$uid (ex: flatpak refuse to bind mount /dev/
paths).

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 configs/profile.d/sxmo_init.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configs/profile.d/sxmo_init.sh b/configs/profile.d/sxmo_init.sh
index 785d235f..83d50ea6 100644
--- a/configs/profile.d/sxmo_init.sh
+++ b/configs/profile.d/sxmo_init.sh
@@ -48,6 +48,11 @@ _sxmo_find_runtime_dir() {
		fi
	done

	if type mkrundir > /dev/null 2>&1; then
		mkrundir
		return
	fi

	# Fallback to a shared memory location
	printf "/dev/shm/user/%s" "$(id -u)"
}
-- 
2.44.0
sxmo-utils/patches/test.yml: SUCCESS in 32s

[sxmo_init.sh: use mkrundir if available][0] from [Willow Barraco][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/50441
[1]: mailto:contact@willowbarraco.fr

✓ #1178150 SUCCESS sxmo-utils/patches/test.yml https://builds.sr.ht/~mil/job/1178150