You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
354 B

3 years ago
#!/bin/sh
# tweak xdg-user-dirs defaults if told so
# using tuples like "PHOTOS:Documents/Pictures"
. shell-config
CONFIG="/etc/xdg/user-dirs.defaults"
[ -z "$GLOBAL_XDG_USER_DIRS" ] ||
echo "$GLOBAL_XDG_USER_DIRS" \
| tr ' ' '\n' \
| while IFS=':' read k v; do
[ -n "$k" -a -n "$v" ] || continue
shell_config_set "$CONFIG" "$k" "$v"
done