For some reason, I never got this to work. 
Here's my lightdm.conf file:
Code:
[SeatDefaults]
user-session=ubuntu
greeter-session=unity-greeter
display-setup-script=/etc/lightdm/lightdmxrandr.sh
allow-guest=false
session-setup-script=/home/Scripts/wallpaper_logon.sh
session-cleanup-script=/home/Scripts/wallpaper_logoff.sh
I have an XML file as background, which LightDM does not display (Instead, I can choose a custom background for LightDM!). However, during login, the wallpaper does not fade, and I would love to.
When I log in, LightDM would be supposed to run this script (Yes, my scripts are executables):
Code:
#!/bin/sh
sleep 4
gsettings set org.gnome.desktop.background picture-options 'stretched'
gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/friendship_v3/background-1.xml
Nothing happen. Running the script manually, or adding it to startup applications work, however...
And at logoff, I want to change it back to LightDM background:
Code:
#!/bin/sh
gsettings set org.gnome.desktop.background picture-uri file:///usr/share/backgrounds/LoginWallpaper4.jpg
sleep 2
gnome-session-quit --no-prompt
gnome-session-quit --no-prompt actually logoff properly, if I run the script manually.
This is really confusing. Where are my wallpapers supposed to be located? In my Home, or in /Etc/Lightdm ? Same question for the login and logoff scripts ?
Thank you!