From 5b875fb8f2b9c2ca0b3620cddb45cc40ff9fa121 Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 1 Mar 2025 19:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=88=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qzsec/access-client/access-client | 13 +++++++++++++ qzsec/access-client/access-client.desktop | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/qzsec/access-client/access-client b/qzsec/access-client/access-client index 2bed3d6..a68e211 100644 --- a/qzsec/access-client/access-client +++ b/qzsec/access-client/access-client @@ -2,6 +2,19 @@ URL="$1" +if [ "$URL" == "" ]; then + echo "Usage: $0 accessclient://" + sleep 5 + exit 1 +fi + +if [ ! "$URL" == "accessclient://"* ]; then + echo "Invalid URL, should be accessclient://" + sleep 5 + exit 1 +fi + + ARGS=$(echo $URL | sed 's|accessclient://||' | base64 -d | minideflate -d ) APP=$(echo $ARGS | jq -r.app) diff --git a/qzsec/access-client/access-client.desktop b/qzsec/access-client/access-client.desktop index 7816330..a38e71f 100644 --- a/qzsec/access-client/access-client.desktop +++ b/qzsec/access-client/access-client.desktop @@ -10,4 +10,4 @@ Categories=System;ConsoleOnly; Keywords=system;h3c; NoDisplay=true Exec=@EXEC %u -MimeType=application/x-accessclient; \ No newline at end of file +MimeType=application/x-accessclient;x-scheme-handler/accessclient; \ No newline at end of file