Can't set or change wallpaper after Deepin 15.6 upgrade
Community Discussion 2192 views · 4 replies ·
weverton
deepin
2018-06-19 12:07
Author
Hi,
After Deepin 15.6 upgrade, isn't possible set or change wallpapers, the only possible way to change the wallpaper is with the right mouse button on the desktop, but from there I can only choose the official wallpapers.
I use Variety Wallpaper to get images from the web and change the wallpaper automatically. Variety is working perfectly, I know this because when I type the command gsettings get org.gnome.desktop.background picture-uri in the terminal, it returns the same image path that is set to current in Variety.
If I Define an image as wallpaper via Deepin File Manager, it is in the same situation as Variety.
I reinstalled Variety several times, including removal using --purge and deleting the ~/.config/variety folder for clean install.
I don't believe that the problem is with Variety, because, as mentioned, it's changing the wallpaper, but apparently there is some bug with DDE which causes him to ignore the changes.
Reply Like 0 View the author
gaoshou
deepin
2018-06-20 18:00
#3
This DDE is a new version ,and with a new kernel , So from I see , Variety need update too
Reply Like 0 View the author
Comments
weverton
2018-06-20 19:09
If I try to set an image as wallpaper via file manager, nothing happens either, so I think that really has bug in DDE.
weverton
deepin
2018-06-22 18:31
#4
Edited by weverton at 2018-6-22 10:33
OK, I got a partial solution.
The correct command to return the wallpaper path in DDE is gsettings get com.deepin.dde.appearance background-uris and not gsettings get org.gnome.desktop.background picture-uri as I mentioned earlier.
I can set as wallpaper via terminal with the following command:
gsettings set com.deepin.dde.appearance background-uris "['file:///path/to/img.jpg']"
Copy the Code
I know the wallpaper has changed seeing the launcher's background, but the change is only applied to the desktop when I restart the computer.
In Variety I made a small change to the set_wallpaper file from the ~/.config/variety/scripts folder. In the following part:
# Deepin
if [ "$(gsettings list-schemas | grep com.deepin.wrap.gnome.desktop.background | wc -l)" -ge 1 ]; then
gsettings set com.deepin.wrap.gnome.desktop.background picture-uri "file://$WP"
if [ "`gsettings get com.deepin.wrap.gnome.desktop.background picture-options`" == "'none'" ]; then
gsettings set com.deepin.wrap.gnome.desktop.background picture-options 'zoom'
fi
fi
Copy the Code
I changed to:
# Deepin
if [ "$(gsettings list-schemas | grep com.deepin.dde.appearance | wc -l)" -ge 1 ]; then
gsettings set com.deepin.dde.appearance background-uris "['file://$WP']"
if [ "`gsettings get com.deepin.wrap.gnome.desktop.background picture-options`" == "'none'" ]; then
gsettings set com.deepin.wrap.gnome.desktop.background picture-options 'zoom'
fi
fi
Copy the Code
Now I just need to find a way to clear the desktop cache so that everything works fine .
After Deepin 15.6 upgrade, isn't possible set or change wallpapers, the only possible way to change the wallpaper is with the right mouse button on the desktop, but from there I can only choose the official wallpapers.
I use Variety Wallpaper to get images from the web and change the wallpaper automatically. Variety is working perfectly, I know this because when I type the command gsettings get org.gnome.desktop.background picture-uri in the terminal, it returns the same image path that is set to current in Variety.
If I Define an image as wallpaper via Deepin File Manager, it is in the same situation as Variety.