update ace-host-integration.

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2024-03-20 02:50:43 +00:00 committed by Gitee
parent c976b58920
commit 903788732c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -49,8 +49,8 @@ local file=$1
echo "$file is detected. Processing host system integration..."
sed -i 's|^Exec=\(.*\)|Exec=bookworm-run \1|' "$file"
sed -i '/^TryExec=/d' "$file"
sed -i '/^Name=/ s/$/ (ACE-Integration)/' "$file"
sed -i "/^Name\[${LANGUAGE}\]=/ s/\$/ (ACE-Integration)/" "$file"
sed -i '/^Name=/ s/$/ (ACE)/' "$file"
sed -i "/^Name\[${LANGUAGE}\]=/ s/\$/ (ACE)/" "$file"
icon_line=$(grep "^Icon=" "$file")
if [[ "$icon_line" == "Icon=/"* ]]; then
# 如果Icon=后面接的是/,则添加前缀