From ce2d2b1c2e8073195ba1580535a2100c5aeded6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 18 Jan 2022 13:18:24 +0100 Subject: [PATCH] added installer for thinpro 7.2 --- client-py3/full/linux/thinpro/firefox/45-uds | 4 + .../full/linux/thinpro/firefox/handlers.json | 98 +++++++++++++++++++ client-py3/full/linux/thinpro/firefox/uds | 5 + .../full/linux/thinpro/install-uds-client.sh | 15 ++- 4 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 client-py3/full/linux/thinpro/firefox/45-uds create mode 100644 client-py3/full/linux/thinpro/firefox/handlers.json create mode 100644 client-py3/full/linux/thinpro/firefox/uds diff --git a/client-py3/full/linux/thinpro/firefox/45-uds b/client-py3/full/linux/thinpro/firefox/45-uds new file mode 100644 index 00000000..14d91bc8 --- /dev/null +++ b/client-py3/full/linux/thinpro/firefox/45-uds @@ -0,0 +1,4 @@ +# UDS handlers.json +cp "/lib/UDSClient/firefox/handlers.json" "$FIREFOX_PROFILE_HANDLERS" +ffset "network.protocol-handler.external.uds" "true" +ffset "network.protocol-handler.external.udss" "true" diff --git a/client-py3/full/linux/thinpro/firefox/handlers.json b/client-py3/full/linux/thinpro/firefox/handlers.json new file mode 100644 index 00000000..2572e7b2 --- /dev/null +++ b/client-py3/full/linux/thinpro/firefox/handlers.json @@ -0,0 +1,98 @@ +{ + "defaultHandlersVersion": { + "en-US": 4 + }, + "mimeTypes": { + "application/pdf": { + "action": 3, + "extensions": [ + "pdf" + ] + }, + "application/x-ica": { + "action": 2, + "extensions": [ + "ica" + ], + "handlers": [ + { + "name": "wfica", + "path": "/usr/share/hptc-firefox-mgr/handlers/citrix" + } + ] + }, + "application/x-rdp": { + "action": 2, + "extensions": [ + "rdp" + ], + "handlers": [ + { + "name": "HP xfreerdp", + "path": "/usr/share/hptc-firefox-mgr/handlers/rdp" + } + ] + }, + "text/lic": { + "action": 2, + "extensions": [ + "lic" + ], + "handlers": [ + { + "name": "Copy license to ThinPro", + "path": "/usr/share/hptc-firefox-mgr/handlers/copy_lic" + } + ] + }, + "text/xml": { + "action": 3, + "extensions": [ + "xml" + ] + }, + "image/svg+xml": { + "action": 3, + "extensions": [ + "svg" + ] + }, + "image/webp": { + "action": 3, + "extensions": [ + "webp" + ] + } + }, + "schemes": { + "vmware-view": { + "action": 2, + "handlers": [ + { + "name": "VMWare Horizon View", + "path": "/usr/share/hptc-firefox-mgr/handlers/vmware" + } + ] + }, + "uds": { + "action": 2, + "handlers": [ + { + "name": "UDS Client for ThinPro (SSL)", + "path": "/usr/share/hptc-firefox-mgr/handlers/uds" + } + ] + }, + "udss": { + "action": 2, + "handlers": [ + { + "name": "UDS Client for ThinPro", + "path": "/usr/share/hptc-firefox-mgr/handlers/uds" + } + ] + } + + + } +} \ No newline at end of file diff --git a/client-py3/full/linux/thinpro/firefox/uds b/client-py3/full/linux/thinpro/firefox/uds new file mode 100644 index 00000000..2abca611 --- /dev/null +++ b/client-py3/full/linux/thinpro/firefox/uds @@ -0,0 +1,5 @@ +#!/bin/sh + +export LD_PRELOAD="" +/bin/udsclient $* +exit 0 diff --git a/client-py3/full/linux/thinpro/install-uds-client.sh b/client-py3/full/linux/thinpro/install-uds-client.sh index 896c5e57..a8f8aff9 100755 --- a/client-py3/full/linux/thinpro/install-uds-client.sh +++ b/client-py3/full/linux/thinpro/install-uds-client.sh @@ -13,13 +13,26 @@ INSTALLED=0 # Installation for 7.1.x version grep -q "7.1" /etc/issue if [ $? -eq 0 ]; then + echo "Installing for 7.1 version" # Allow UDS apps without asking cp firefox7.1/syspref.js /etc/firefox - # Copy handlers for firefox + # Copy handlers.json for firefox mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1 cp firefox7.1/handlers.json /lib/UDSClient/firefox/ + # and runner cp firefox7.1/45-uds /etc/hptc-firefox-mgr/prestart INSTALLED=1 +else + echo "Installing for > 7.1 version" + # Copy handlers for firefox + mkdir -p /lib/UDSClient/firefox/ > /dev/null 2>&1 + # Copy handlers.json for firefox + cp firefox/handlers.json /lib/UDSClient/firefox/ + cp firefox/45-uds /etc/hptc-firefox-mgr/prestart + # copy uds handler for firefox + cp firefox/uds /usr/share/hptc-firefox-mgr/handlers/uds + chmod 755 /usr/share/hptc-firefox-mgr/handlers/uds + INSTALLED=1 fi # If not installed, show a message