package main import "fmt" func generateDesktopFormat(name string, exec string, icon string) string { desktopBaseFormat := `[Desktop Entry] Version=1.0 Type=Application Terminal=false Name=%s GenericName=%s Exec=%s Icon=%s StartupNotify=true` createdDesktopFormat := fmt.Sprintf(desktopBaseFormat, name, name, exec, icon) return createdDesktopFormat }