ee703cef93
This script hook used to lurk in live feature but was deemed needed in cubox images too; thus it's time to move it into a standalone feature (maybe a configurable one, even). Thanks glebfm@ for initial shot and sem@ for discussion.
19 lines
427 B
Bash
Executable File
19 lines
427 B
Bash
Executable File
#!/bin/sh
|
|
# turn on xdg-user-dirs.and tweak its defaults if told so
|
|
# (using tuples like "PHOTOS:Documents/Pictures")
|
|
|
|
. shell-config
|
|
|
|
CONFIG="/etc/xdg/user-dirs.defaults"
|
|
|
|
if control xdg-user-dirs enabled; then
|
|
if [ -n "$GLOBAL_XDG_USER_DIRS" ]; then
|
|
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
|
|
fi
|
|
fi
|