Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 23, 2022 16:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
/*
Recibe el nombre de una imagen para poner como fondo. La imagen debe estar
en el mismo directorio que este ejecutable
*/
func cambiarWallpaper(nombreImagen string) ([]byte, error) {
ubicacionActual, _ := os.Getwd()
ubicacionImagenCompleta := path.Join(ubicacionActual, nombreImagen)
return exec.Command(NombreEjecutableWallpaperChange, ubicacionImagenCompleta).Output()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment