I want to change the wallpaper when a custom .deb package is installed.
In the postinst script I've written this:
PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ | cut -d= -f2- )
dbus-launch gsettings set org.gnome.destkop.backgroun picture-uri “file:///path/photo.png”
I see dconf value is changed, but nothing else happens (wallpapers isn't changed), although my photo appears as the current wallpaper in "gnome-control-center background" . (wtf!!??).
Moreover, when I logout and login again, the former dconf value returns as if I hadn't done anything.
I'm going crazy.
Thanks!