-
-
Save parzibyte/d82aa02889c5bb88388d9447f63bdf67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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