Sfoglia il codice sorgente

wallpaper: Fixed GNOME support. Closes #1037

Dylan Araps 7 anni fa
parent
commit
aae3271422
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      neofetch

+ 5 - 0
neofetch

@@ -3491,6 +3491,11 @@ END
                     image="$(decode_url "$image")"
                     image="$(decode_url "$image")"
                 ;;
                 ;;
 
 
+                "GNOME"*)
+                    image="$(gsettings get org.gnome.desktop.background picture-uri)"
+                    image="$(decode_url "$image")"
+                ;;
+
                 *)
                 *)
                     if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
                     if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
                         image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"
                         image="$(awk -F\' '/feh/ {printf $(NF-1)}' "${HOME}/.fehbg")"