wallpaper icon indicating copy to clipboard operation
wallpaper copied to clipboard

Windows Get is successful even if the wallpaper doesn't exist

Open phanirithvij opened this issue 5 years ago • 1 comments

Try these

wallpaper.SetFromFile("C:\\some\\image.jpg")
  1. Then delete that file
wallpaper.Get()
// gives the exact same path i.e. C:\some\image.jpg

I know this is a systemParametersInfo implementation issue. But is there something that can be done to extract the wallpaper more reliably?

So that something like wallpaper.Get().save(path) can be implemented without no worries.

phanirithvij avatar Sep 21 '19 15:09 phanirithvij

This looks promising https://superuser.com/questions/966650/path-to-current-desktop-backgrounds-in-windows-10

phanirithvij avatar Sep 21 '19 16:09 phanirithvij