I use python for my PC, but it will reset the default wallpaper when the system reboots

As you can see, I followed the approach suggested by @meskr from How to change desktop background in python? to write my script to change my wallpaper.

ctypes.windll.user32.SystemParametersInfoW(20, 0, filepath, 0)

My system is Windows 10 and I am using python 3.5. The code works fine, it can help me change my wallpaper correctly. But when my system boots up, the wallpaper will reset by default. I do not know why and how to avoid it.

+4
source share

Source: https://habr.com/ru/post/1690654/


All Articles