Velneo vDevelop Web
Ejecución de solución desde Velneo vDevelop Web (F5)
Windows
Linux
#!/bin/sh
#
# Startup script
#
# Function to find the real directory a program resides in.
# Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
FindPath()
{
fullpath="`echo $1 | grep /`"
if [ "$fullpath" = "" ]; then
oIFS="$IFS"
IFS=:
for path in $PATH
do if [ -x "$path/$1" ]; then
if [ "$path" = "" ]; then
path="."
fi
fullpath="$path/$1"
break
fi
done
IFS="$oIFS"
fi
if [ "$fullpath" = "" ]; then
fullpath="$1"
fi
# Is the sed/ls magic portable?
if [ -L "$fullpath" ]; then
#fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
fi
dirname $fullpath
}
# Set the home if not already set.
if [ "${VELNEO_PATH}" = "" ]; then
VELNEO_PATH="`FindPath $0`"
fi
LD_LIBRARY_PATH=.:${VELNEO_PATH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
# Creamos acceso directo para vClient que además gestiona el esquema vatps
MENU_USUARIO=$HOME/.local/share/applications
COMPONENTE="vClient"
FICHERO_ACCESO="$MENU_USUARIO/com.velneo.$COMPONENTE.desktop"
# Comprobamos que no exista ya el acceso directo
# Comprobamos que xdg-open está instalado
if [ ! -e "$FICHERO_ACCESO" ] && xdg-open --version >/dev/null 2>&1; then
# Creamos el acceso directo y asociamos los esquemas vatp y vatps
echo ____________________________________________
echo
echo "Creamos los accesos directos en el menú"
VELNEO_PATH_REAL=$(realpath "${VELNEO_PATH}" )
touch "$FICHERO_ACCESO"
chmod +x "$FICHERO_ACCESO"
{
echo "[Desktop Entry]"
echo "Name=Velneo $COMPONENTE"
echo "GenericName=Componente de Velneo"
echo "Comment=Velneo $COMPONENTE es un componente de Velneo"
echo "Exec=${VELNEO_PATH_REAL}/$COMPONENTE.sh %u"
echo "Type=Application"
echo "Icon=${VELNEO_PATH_REAL}/$COMPONENTE.png"
echo "Categories=Qt;Development;"
echo "MimeType=application/x-velneo;x-scheme-handler/vatps;x-scheme-handler/vatp;"
} >> "$FICHERO_ACCESO"
echo "Registramos el acceso directo vClient y los protocolos vatp y vatps"
xdg-mime default "com.velneo.$COMPONENTE.desktop" x-scheme-handler/vatps
xdg-mime default "com.velneo.$COMPONENTE.desktop" x-scheme-handler/vatp
echo ____________________________________________
echo
echo "Registramos los accesos directos creados para el menú"
echo ============================================
update-desktop-database "$MENU_USUARIO"
fimacOS





Acceso directo a una solución
Extensiones disponibles
Funcionalidades no existentes en la versión web
Opciones
Editores
Galerías y asistentes
Otros
Última actualización
¿Te fue útil?