Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on windows 7 #9

Closed
Merith-TK opened this issue Sep 2, 2019 · 4 comments
Closed

Does not work on windows 7 #9

Merith-TK opened this issue Sep 2, 2019 · 4 comments

Comments

@Merith-TK
Copy link

I know win7 is outdated now, but my mobile development laptop is win7.

NOTE: go build and go run don't work, No errors, they act like nothing is wrong, but the results have no effect on the wallpaper, FOR EXAMPLE, these two exe files attached, were build on the systems labeled, and below is the EXACT SAME SOURCE code (one file, wallpaper.go)

package main

import (
	"fmt"
	"os"
	"time"
	"github.com/reujab/wallpaper"
)

var URL = "https://mgo.azureedge.net/cloudcache/7/c/2/f/3/4/7c2f345bdfcadb8a3faf483ebaa2e9aea712bbdb.jpg"
var file = ""

func main() {
	
	//Check to see if image is provided
	if len(os.Args) >= 2 {
		file = os.Args[1]
	}
	
	//If no image provided, set wallpaper to Default Windows 10 wallpaper
	if file == "" {
		wallpaper.SetFromURL(URL)
		fmt.Println("")
		fmt.Println("To use, drag and drop a image onto the exe, as if you were moving it to a folder.")
		fmt.Println("Default behavior is to reset to the default windows wallpaper")
		
		time.Sleep(30 * time.Second)
	} else {
	// If a image is provided, set that as the wallpaper
		wallpaper.SetFromFile(file)
	}
}

TL;DR
go build/go run returns no results on windows 7
prebuilt exe from win10 results in the wallpaper working

wallpaper.exe.zip

@reujab
Copy link
Owner

reujab commented Jan 23, 2020

Both of the exe files work in my Windows 7 virtual machine.

@Merith-TK
Copy link
Author

Yeah, but the binary built on win7 dont work on windows 10

@reujab
Copy link
Owner

reujab commented Jan 23, 2020

They both work in my Windows 10 vm.

@Merith-TK
Copy link
Author

huh, mustve been me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants