[Share Experiences] 分享一下如何将uengine里安装的apk添加到桌面
Tofloor
poster avatar
180******04
deepin
2022-04-06 07:21
Author

代码很简单,直接发出来供大家参考使用

#!/bin/bash
read -p "显示的文件名:" name
read -p "APK包名:" package
read -p "图标文件(可留空):" icon

file=~/Desktop/"$name.desktop"
touch $file

echo '[Desktop Entry]' >> $file
echo 'X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher' >> $file
echo "X-Deepin-AppID=uengine.$package" >> $file
echo "Exec=/usr/bin/uengine-launch.sh --action=android.intent.action.MAIN --package=$package" >> $file
echo "Icon=$icon" >> $file
echo 'Terminal=false' >> $file
echo 'Type=Application' >> $file
echo "GenericName=$name" >> $file
echo "Name=$name" >> $file
echo "GenericName[zh_CN]=$name" >> $file
echo "Name[zh_CN]=$name" >> $file
chmod +x $file

echo "添加完成"


Reply Favorite View the author
All Replies
lizipeng0013
deepin
2022-04-06 09:09
#1

我的是自动添加到桌面的

Reply View the author
delsin
deepin
2022-04-06 17:19
#2

最新版本的uengine-runner是自动添加到桌面的吧。

Reply View the author
momo
deepin
2022-04-06 17:38
#3

好像现在是自动添加到桌面的

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-04-06 21:12
#4

星火下载uengine运行器,点一下就行

Reply View the author