From 0fd52c63ee4b80ebd74e8a60394694fae53bf459 Mon Sep 17 00:00:00 2001 From: Kristiyan <60707126+Danar435@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:22:27 +0100 Subject: [PATCH] fix: hide accent-color errors (#2056) --- system_files/shared/usr/libexec/ublue-bling-fastfetch | 2 +- system_files/shared/usr/libexec/ublue-motd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system_files/shared/usr/libexec/ublue-bling-fastfetch b/system_files/shared/usr/libexec/ublue-bling-fastfetch index c00e5f422fb..3a4f9a84dec 100755 --- a/system_files/shared/usr/libexec/ublue-bling-fastfetch +++ b/system_files/shared/usr/libexec/ublue-bling-fastfetch @@ -1,6 +1,6 @@ #!/usr/bin/env bash -THEME=$(gsettings get org.gnome.desktop.interface accent-color || echo "'slate'") +THEME=$(gsettings get org.gnome.desktop.interface accent-color 2>/dev/null || echo "'slate'") THEME=${THEME//\'/} FASTFETCH_COLOR_SET="38;2;53;132;228" diff --git a/system_files/shared/usr/libexec/ublue-motd b/system_files/shared/usr/libexec/ublue-motd index 0e9589e421b..106143decab 100755 --- a/system_files/shared/usr/libexec/ublue-motd +++ b/system_files/shared/usr/libexec/ublue-motd @@ -30,7 +30,7 @@ KEY_WARN_FILE="/run/user-motd-sbkey-warn.md" [ -e $KEY_WARN_FILE ] && KEY_WARN="**WARNING**: $(cat $KEY_WARN_FILE)" KEY_WARN_ESCAPED=$(escape "$KEY_WARN") -THEME=$(gsettings get org.gnome.desktop.interface accent-color || echo "'slate'") +THEME=$(gsettings get org.gnome.desktop.interface accent-color 2>/dev/null || echo "'slate'") THEME=${THEME//\'/} THEME=${MOTD_FORCE_THEME:-$THEME}