now chmod +x

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2023-12-06 14:55:27 +00:00 committed by Gitee
parent 6df9804f02
commit 7d81ba5be7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -38,6 +38,7 @@ function exec_create_desktop_file() {
for desktop_file_path in $(dpkg -L "$package_name" |grep /opt/apps/$package_name/entries/applications | awk '/\.desktop$/ {print}'); do
if [ "$(cat $desktop_file_path | grep NoDisplay=true)" = "" ];then
echo $desktop_file_path is checked and will be installed to desktop
chmod +x $desktop_file_path
sudo -u "$user" cp "$desktop_file_path" "$(sudo -u "$user" xdg-user-dir DESKTOP)/"
fi
done