建立快捷方式可以寫個這樣的Shell腳本,可以命名為mp3.lin。打開方式用Loader腳本關(guān)聯(lián),這個文件不管在哪個位置,只要一點擊就會執(zhí)行。內(nèi)容如下:
#!/bin/bash
#系統(tǒng)的環(huán)境變量
export QTDIR=/usr/lib/ezx
export LD_LIBRARY_PATH=$QTDIR/lib
export EZX_RES_F "mp3player" | grep -v grep
then
$Moto_AlertProcess -playvol 5 -playfile $Moto_AlertExistFile
else
cd /mmc/mmca1/Soft/mp3player
./mp3player
fi
mp3_close.lin
#!/bin/bash
Moto_AlertProcess='/usr/SYSqtapp/phone/alertprocess'
Moto_AlertKillFile='/mmc/mmca1/Soft/public/kill.wav'
Moto_AlertNoFile='/mmc/mmca1/Soft/public/no.wav'
Moto_AlertInfoFile='/mmc/mmca1/Soft/public/info.mid'
$Moto_AlertProcess -playvol 5 -playfile $Moto_AlertInfoFile
if ps -ef | grep "mp3player" | grep -v grep
then
start-stop-daemon --start --exec /bin/kill ` pidof mp3player `
$Moto_AlertProcess -playvol 5 -playfile $Moto_AlertKillFile
else
$Moto_AlertProcess -playvol 5 -playfile $Moto_AlertNoFile
fi
PlugCardDB中關(guān)于loader和shortcuts的配置信息
[AppLinkRecord100000001]
AllPosition =
BigIcon = liwei.gif
Directory = ../../../../mmc/mmca1/Soft/liwei
Exec = liwei
Group = 5
Icon = liwei_sm.gif
InstalledDate =
JavaId = -1
Mime =
MpkgFile =
Name = liwei
OsVersion =
Position = 17
Rotation =
Shared = 0
Size =
Type = 2
uid = 100000001
[AppLinkRecord100000002]
AllPosition =
BigIcon = big.png
Directory = ../../../../mmc/mmca1/Soft/shortcuts
Exec = shortcuts.sh
Group = 5
Icon = sm.png
InstalledDate =
JavaId = -1
Mime =
MpkgFile =
Name =
OsVersion =
Position =
Rotation =
Shared = 0
Size =
Type = 2
uid = 100000002