|
发表于 2005-4-30 16:11:19
|
显示全部楼层
这是OKYH有关菜单设置部分的代码,请Subbo兄增加填充一些软件
mkdir /tmp/okcd
mkdir /tmp/okcd/Game
mkdir /tmp/okcd/Multimedia
mkdir /tmp/okcd/Internet
mkdir /tmp/okcd/Office
xtcd=/usr/share/applnk/System
if [ ! -e $xtcd ]; then
mkdir -p $xtcd
fi
if [ ! -e $xtcd/OKYH ]; then
mkdir $xtcd/OKYH
fi
if [ -f /usr/local/eio/EIOffice.bin ]; then
echo "[Desktop Entry]
Exec=/usr/local/eio/EIOffice.bin
Icon=/usr/local/eio/EIOOffice.ese
Name[zh_CN]=永中Office
Type=Application">/tmp/okcd/Office/eioffice.desktop
fi
if [ -f /usr/local/RealPlayer/realplay ]; then
echo "[Desktop Entry]
Exec=/usr/local/RealPlayer/realplay
Icon=realplay.png
Name[zh_CN]=RealPlayer
Type=Application">/tmp/okcd/Multimedia/realplay.desktop
fi
if [ -f /usr/local/HelixPlayer/hxplay ]; then
echo "[Desktop Entry]
Exec=/usr/local/HelixPlayer/hxplay
Icon=hxplay.png
Name[zh_CN]=HelixPlayer
Type=Application">/tmp/okcd/Multimedia/hxplay.desktop
fi
if [ -f /usr/local/mozilla/mozilla ]; then
echo "[Desktop Entry]
Exec=/usr/local/mozilla/mozilla
Icon=
Name[zh_CN]=Mozilla浏览器
Type=Application">/tmp/okcd/Internet/mozilla.desktop
fi
if [ -f /usr/local/mozilla/mozilla ]; then
echo "[Desktop Entry]
Exec=/usr/local/mozilla/mozilla -mail
Icon=
Name[zh_CN]=Mozilla Mail
Type=Application">/tmp/okcd/Internet/mozilla-mail.desktop
fi
if [ -f /usr/local/netscape/netscape ]; then
echo "[Desktop Entry]
Exec=/usr/local/netscaape/netscape
Icon=
Name[zh_CN]=Netscape浏览器
Type=Application">/tmp/okcd/Internet/netscaape.desktop
fi
if [ -f /usr/local/netscape/netscape ]; then
echo "[Desktop Entry]
Exec=/usr/local/netscaape/netscape -mail
Icon=
Name[zh_CN]=NetscapeMail
Type=Application">/tmp/okcd/Internet/netscaape-mail.desktop
fi
if [ -f /usr/bin/gxine ]; then
echo "[Desktop Entry]
Exec=gxine
Icon=
Name[zh_CN]=GxineMediaPlayer
Type=Application">/tmp/okcd/MMultimedia/gxine.desktop
fi
if [ -f /usr/bin/gmplayer ]; then
echo "[Desktop Entry]
Exec=gmplayer
Icon=
Name[zh_CN]=MPlayer
Type=Application">/tmp/okcd/Multimedia/mplayer.desktop
fi
if [ -f /bin/okyh ]; then
echo "[Desktop Entry]
Exec=kmix
Icon=
Name[zh_CN]=kmix
Type=Application">/usr/share/autostart/kmix.desktop
fi
if [ -f /bin/okyh ]; then
echo "[Desktop Entry]
Exec=/bin/okyh auto
Icon=
Name[zh_CN]=OKYH Auto
Type=Application">/usr/share/autostart/okyh.desktop
fi
if [ -f /bin/okyh ]; then
echo "[Desktop Entry]
Exec=/bin/okyh dkzd zd-k
Icon=
Name[zh_CN]=打开自动连接ADSL
Type=Application">/usr/share/applnk/System/OKYH/okyhadsl.desktop
fi
if [ -f /bin/okyh ]; then
echo "[Desktop Entry]
Exec=/bin/okyh dkzd ypks
Icon=
Name[zh_CN]=打开硬盘DMA模式
Type=Application">/usr/share/applnk/System/OKYH/okyhypks.desktop
fi
if |
|