From 8db675b4d641dd3509c9478a64082ce1667bbb1e Mon Sep 17 00:00:00 2001 From: Avinash Dwarapu Date: Fri, 5 Feb 2016 22:51:43 +0000 Subject: [PATCH] Fix stupid windows bugs. --- background/background_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/background_windows.go b/background/background_windows.go index 6a446aa..d9790b1 100644 --- a/background/background_windows.go +++ b/background/background_windows.go @@ -25,7 +25,7 @@ func Set(img image.Image) error { if err != nil { return err } - imgPath := filepath.Join(usr.HomeDir, "AppData", "Roaming", "Himawari") + imgPath := filepath.Join(usr.HomeDir, "AppData", "Roaming", "Himawari", "background.png") // Create the file. if err := createFile(img, imgPath); err != nil { @@ -36,7 +36,7 @@ func Set(img image.Image) error { proc.Call( spiSETDESKWALLPAPER, 0, - uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))), + uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(imgPath))), spifUPDATEINIFILE, ) return nil