mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Support restoring dconf.
This commit is contained in:
11
install.sh
11
install.sh
@@ -348,6 +348,13 @@ install_main() {
|
||||
cleanup
|
||||
}
|
||||
|
||||
install_dconf() {
|
||||
which dconf >/dev/null 2>&1 || return 1
|
||||
find "${BASEDIR}/dconf" -type f -printf '/%P\n' | while read dcpath ; do
|
||||
dconf load ${dcpath}/ < "${BASEDIR}/dconf/${dcpath}"
|
||||
done
|
||||
}
|
||||
|
||||
# Setup variables
|
||||
read_saved_prefs
|
||||
|
||||
@@ -401,6 +408,10 @@ case $OPERATION in
|
||||
# Do nothing, just sourcing
|
||||
set +o errexit
|
||||
;;
|
||||
dconf)
|
||||
# Load dconf
|
||||
install_dconf
|
||||
;;
|
||||
*)
|
||||
echo "Unknown operation $OPERATION." >/dev/stderr
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user