mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-06 13:46:00 +08:00
update tool/store-helper/ss-launcher.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
358df6d852
commit
798fd4ba27
@ -56,19 +56,23 @@ unset desktop_file_path
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scan_desktop_file(){
|
function scan_desktop_file(){
|
||||||
unset desktop_file_path
|
unset desktop_file_path
|
||||||
for desktop_file_path in $(dpkg -L "$1" |grep /usr/share/applications/ | awk '/\.desktop$/ {print}'); do
|
local result=""
|
||||||
if [ "$(cat $desktop_file_path | grep NoDisplay=true)" = "" ];then
|
for desktop_file_path in $(dpkg -L "$1" | grep /usr/share/applications/ | awk '/\.desktop$/ {print}'); do
|
||||||
echo "$desktop_file_path"
|
if [ "$(grep NoDisplay=true $desktop_file_path)" = "" ]; then
|
||||||
fi
|
result+="$desktop_file_path,"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
for desktop_file_path in $(dpkg -L "$1" |grep /opt/apps/$package_name/entries/applications | awk '/\.desktop$/ {print}'); do
|
for desktop_file_path in $(dpkg -L "$1" | grep /opt/apps/$package_name/entries/applications | awk '/\.desktop$/ {print}'); do
|
||||||
if [ "$(cat $desktop_file_path | grep NoDisplay=true)" = "" ];then
|
if [ "$(grep NoDisplay=true $desktop_file_path)" = "" ]; then
|
||||||
echo "$desktop_file_path"
|
result+="$desktop_file_path,"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# 去掉最后一个逗号
|
||||||
|
if [ -n "$result" ]; then
|
||||||
|
result=${result%,}
|
||||||
|
fi
|
||||||
|
echo "$result"
|
||||||
}
|
}
|
||||||
|
|
||||||
function launch_app(){
|
function launch_app(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user