Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 23, 2022 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d82aa02889c5bb88388d9447f63bdf67 to your computer and use it in GitHub Desktop.
Save parzibyte/d82aa02889c5bb88388d9447f63bdf67 to your computer and use it in GitHub Desktop.
/*
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