[ "$(command -v gsettings)" ] || return 0

# gsettings list-schemas \
# | grep -i gtk \
# | sort \
# | xargs -n 1 gsettings list-recursively \
# | awk '{print $1, $2}' \
# | while read -r line
# do
#   echo $line
#   gsettings describe $line
#   echo
# done

## Don't remember recent files
gsettings set org.gtk.Settings.FileChooser      startup-mode    'cwd'
gsettings set org.gtk.Settings.FileChooser      last-folder-uri "file://$HOME"
gsettings set org.gtk.gtk4.Settings.FileChooser startup-mode    'cwd'
gsettings set org.gtk.gtk4.Settings.FileChooser last-folder-uri "file://$HOME"
gsettings set org.gnome.desktop.privacy remember-recent-files false
gsettings set org.gnome.desktop.privacy recent-files-max-age  0
