Skip to content

Commit

Permalink
fix: add gsettings fallback for MOTD (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz authored Jan 11, 2025
1 parent 0db9d23 commit 9cbdc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ublue/motd/src/ublue-motd
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ KEY_WARN_ESCAPED=$(escape "$KEY_WARN")


THEME=$(dconf read /org/gnome/desktop/interface/accent-color 2>/dev/null || printf '%s' "\'$DEFAULT_THEME\'")
# Dconf will fail if the accent-color has not been changed yet
if [ "$THEME" == "" ] ; then
# Gsettings will not update if the system's schemas have not been configured properly
THEME=$(gsettings get org.gnome.desktop.interface accent-color 2>/dev/null || printf '%s' "\'$DEFAULT_THEME\'")
fi
THEME=${THEME//\'/}
THEME=${MOTD_FORCE_THEME:-$THEME}

Expand Down
2 changes: 1 addition & 1 deletion ublue/motd/ublue-motd.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}

Name: ublue-motd
Version: 0.2.0
Version: 0.2.1
Release: 1%{?dist}
Summary: MOTD scripts for Universal Blue images

Expand Down

0 comments on commit 9cbdc2a

Please sign in to comment.