fix: restore-gnome-de-settings - indent syntax, handle empty dirs, add error checks (#2217)

* fix: indent syntax, handle empty dirs, add error checks

* fix: rm set -e to fail gracefully
This commit is contained in:
JSON Derulo 2025-01-30 22:08:55 -05:00 committed by GitHub
parent d0d1d3bcfc
commit c4fd9245f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,11 +2,15 @@
# Restore Bazzite customized DE settings
restore-gnome-de-settings:
#!/bin/bash
shopt -s nullglob
for file in /usr/share/ublue-os/dconfs/desktop-silverblue/*; do
dconf load / < "${file}"
echo "Loading dconf settings from: $file"
dconf load / < "$file"
done
for file in /usr/share/ublue-os/dconfs/deck-silverblue/*; do
dconf load / < "${file}"
echo "Loading dconf settings from: $file"
dconf load / < "$file"
done
# Restore Bazzite customized applications folders