Include more possible desktops
This commit is contained in:
parent
9f97093047
commit
ec868706bc
1 changed files with 30 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue