base-files: get rid of /etc/profile.d/xdg-*.
- xdg-runtime-dir: this is not necessary anymore, XDG_RUNTIME_DIR is set by ConsoleKit2. - xdg-user-dirs: this should be created elsewhere not inconditionally. Close #3374
This commit is contained in:
parent
bdf7f0dae5
commit
72cf5d3f1c
3 changed files with 1 additions and 22 deletions
|
@ -1,9 +0,0 @@
|
|||
# Sets and creates XDG_RUNTIME_DIR.
|
||||
|
||||
if [ -z "${XDG_RUNTIME_DIR}" ]; then
|
||||
export XDG_RUNTIME_DIR=/tmp/${UID:-$(id -u)}-runtime-dir
|
||||
if [ -w /tmp ] && [ ! -d "${XDG_RUNTIME_DIR}" ]; then
|
||||
mkdir -p "${XDG_RUNTIME_DIR}" >/dev/null 2>&1
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}" >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CFGDIR=$HOME/.config
|
||||
|
||||
if [ -f "/usr/bin/xdg-user-dirs-update" ] && [ -f "/usr/bin/xdg-user-dirs-gtk-update" ]; then
|
||||
if [ ! -f "$CFGDIR/user-dirs.dirs" ] && [ ! -f "$CFGDIR/user-dirs.locale" ]; then
|
||||
xdg-user-dirs-update
|
||||
xdg-user-dirs-gtk-update
|
||||
echo "XDG user dirs created/updated."
|
||||
fi
|
||||
fi
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'base-files'
|
||||
pkgname=base-files
|
||||
version=0.138
|
||||
version=0.139
|
||||
revision=1
|
||||
bootstrap=yes
|
||||
depends="xbps-triggers"
|
||||
|
|
Loading…
Add table
Reference in a new issue