Skip to content

Commit

Permalink
fix: hide accent-color errors (ublue-os#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danar435 authored Dec 17, 2024
1 parent 8512e3c commit 0fd52c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system_files/shared/usr/libexec/ublue-bling-fastfetch
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion system_files/shared/usr/libexec/ublue-motd
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 0fd52c6

Please sign in to comment.