#!/bin/sh -e
# this script is gonna be replaced by vmware's wrapper
# when vmware view client bundle is actually installed

. userinstall-sh-functions

icon="vmware-view-client-vmware"
url="https://download3.vmware.com/software/view/viewclients/CART15Q1/VMware-Horizon-Client-3.4.0-2769709.x86.bundle"

_init_

oktogo() { _oktogo 'Загрузить <a href="https://my.vmware.com/web/vmware/details?downloadGroup=VIEWCLIENTS_LINUX_34&amp;productId=421&amp;rPId=8149" title="Сайт поставщика">клиент VMware View</a> и установить?'; }

run() { sudo userinstall-helper --run "$outfile"; }

failed() { _failed 'Не удалось установить клиент VMware View, <a href="http://altlinux.org/vmware-view" title="ALT Linux Wiki">попробуйте сами</a> от имени <b>root</b>.'; }

oktogo && download && run || failed

vmware-view "$@"
