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