mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
fix: restore GUI callback desktop handler
This commit is contained in:
12 files changed
+202
-45
No files matched your search
@@ -22,6 +22,25 @@ verify_same_file() {
|
||||
fi
|
||||
}
|
||||
|
||||
verify_contains() {
|
||||
local file="$1"
|
||||
local expected="$2"
|
||||
|
||||
if ! grep -Fqx "$expected" "$file"; then
|
||||
echo "Linux desktop asset is missing '$expected': $file" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_absent() {
|
||||
local file="$1"
|
||||
|
||||
if [[ -e "$file" ]]; then
|
||||
echo "Obsolete Linux desktop asset is still present: $file" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_same_file \
|
||||
"$GPGUI_DIR/app/src-tauri/icons/32x32.png" \
|
||||
"$GP_DIR/packaging/files/usr/share/icons/hicolor/32x32/apps/gpgui.png"
|
||||
@@ -73,8 +92,26 @@ verify_same_file \
|
||||
verify_same_file \
|
||||
"$GPGUI_DIR/app/src-tauri/icons/icon-small.svg" \
|
||||
"$GP_DIR/apps/gpgui-helper/src/assets/icon-small.svg"
|
||||
verify_same_file \
|
||||
"$GPGUI_DIR/app/gpauth.desktop" \
|
||||
"$GP_DIR/packaging/files/usr/share/applications/gpauth.desktop"
|
||||
verify_contains \
|
||||
"$GPGUI_DIR/app/gpgui.desktop.in" \
|
||||
"Exec=/usr/bin/gpclient launch-gui %u"
|
||||
verify_contains \
|
||||
"$GPGUI_DIR/app/gpgui.desktop.in" \
|
||||
"MimeType=x-scheme-handler/globalprotectcallback;"
|
||||
verify_contains \
|
||||
"$GP_DIR/packaging/files/usr/share/applications/gpgui.desktop" \
|
||||
"Exec=/usr/bin/gpclient launch-gui %u"
|
||||
verify_contains \
|
||||
"$GP_DIR/packaging/files/usr/share/applications/gpgui.desktop" \
|
||||
"MimeType=x-scheme-handler/globalprotectcallback;"
|
||||
verify_contains \
|
||||
"$GP_DIR/packaging/bsd/gpgui.desktop" \
|
||||
"Exec=/usr/local/bin/gpclient launch-gui %u"
|
||||
verify_contains \
|
||||
"$GP_DIR/packaging/bsd/gpgui.desktop" \
|
||||
"MimeType=x-scheme-handler/globalprotectcallback;"
|
||||
verify_absent "$GPGUI_DIR/app/gpauth.desktop"
|
||||
verify_absent "$GP_DIR/packaging/files/usr/share/applications/gpauth.desktop"
|
||||
verify_absent "$GP_DIR/packaging/bsd/gpauth.desktop"
|
||||
|
||||
echo "Linux desktop assets are synchronized"
|
||||
Reference in new issue
Block a user