void-packages/srcpkgs/base-files/files/xdg-user-dirs.sh
2013-06-04 13:24:37 -06:00

12 lines
308 B
Bash

#!/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