diff --git a/earth_wallpaper.sh b/earth_wallpaper.sh index 52b3f3e..a58c57d 100755 --- a/earth_wallpaper.sh +++ b/earth_wallpaper.sh @@ -238,11 +238,40 @@ if [ "${gsettings_cmd}" != "" ]; then if [[ "$error_code" != "0" ]]; then echo "Error $error_code setting image file as wallpaper in Gnome" fi + run_and_log "${gsettings_cmd}" set org.gnome.desktop.background picture-uri-dark "file://$wallpaper_file" + error_code=$? + if [[ "$error_code" != "0" ]]; then + echo "Error $error_code setting image file as wallpaper in Gnome" + fi run_and_log "${gsettings_cmd}" set org.gnome.desktop.background picture-options "scaled" run_and_log "${gsettings_cmd}" set org.gnome.desktop.background primary-color '#000000' + run_and_log "${gsettings_cmd}" set com.canonical.unity-greeter background "file://$wallpaper_file2" + + run_and_log "${gsettings_cmd}" set org.gnome.desktop.screensaver picture-uri "file://$wallpaper_file2" + error_code=$? + if [[ "$error_code" != "0" ]]; then + echo "Error $error_code setting image file as wallpaper in Gnome" + fi + + run_and_log "${gsettings_cmd}" set org.mate.background picture-filename "file://$wallpaper_file" + error_code=$? + if [[ "$error_code" != "0" ]]; then + echo "Error $error_code setting image file as wallpaper in Gnome" + fi + + run_and_log "${gsettings_cmd}" set org.cinnamon.desktop.background picture-uri "file://$wallpaper_file" + error_code=$? + if [[ "$error_code" != "0" ]]; then + echo "Error $error_code setting image file as wallpaper in Gnome" + fi + + run_and_log "${gsettings_cmd}" set com.ubuntu.login-screen.background picture-uri "file://$wallpaper_file2" + error_code=$? + if [[ "$error_code" != "0" ]]; then + echo "Error $error_code setting image file as wallpaper in Gnome" + fi - run_and_log "${gsettings_cmd}" set com.canonical.unity-greeter background "$wallpaper_file2" fi if pgrep gnome-session > /dev/null then