diff --git a/srcpkgs/base-files/files/xdg-runtime-dir.sh b/srcpkgs/base-files/files/xdg-runtime-dir.sh new file mode 100644 index 00000000000..583a5e234f3 --- /dev/null +++ b/srcpkgs/base-files/files/xdg-runtime-dir.sh @@ -0,0 +1,9 @@ +# Sets and creates XDG_RUNTIME_DIR. + +if test -z "${XDG_RUNTIME_DIR}"; then + export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir + if ! test -d "${XDG_RUNTIME_DIR}"; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index c543e922969..ce9a9bd0eb6 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,7 +1,7 @@ # Template file for 'base-files' pkgname=base-files -version=0.99 -revision=2 +version=0.100 +revision=1 bootstrap=yes build_style="meta" makedepends="base-directories xbps-triggers"