LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: Subbo

[下载]增加红旗桌面版4.1的一些设置功能(改进版)

[复制链接]
发表于 2005-4-30 15:08:09 | 显示全部楼层
系统都能完成的功能。
回复 支持 反对

使用道具 举报

发表于 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
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-7 16:58:51 | 显示全部楼层
myctrlpanel以后会停止更新。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 15:52:22 | 显示全部楼层
以下是我修改的代码:

mkdir /tmp/okcd
mkdir /tmp/okcd/Game
mkdir /tmp/okcd/Multimedia
mkdir /tmp/okcd/Internet
mkdir /tmp/okcd/Office

xtcd=/usr/share/applnk/System

#################################
# 我添加了一个变量,方便下面使用
#################################
menu=/usr/share/applnk/App/Utilities

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

#################################
# 以下是我添加的部分
#
# 首先是开始菜单的附件部分
#################################

#################################
# 添加个人提醒工具
#################################
if [ ! -e $menu/kalarm.desktop ]; then
echo "[Desktop Entry]
Name=KAlarm
Name[zh_CN]=个人提醒工具
Comment=Personal Alarm Scheduler: start as system tray icon
Comment[zh_CN]=个人日程提醒程序,以系统托盘图标启动。
Exec=kalarm --tray
Icon=kalarm
Type=Application
DocPath=kalarm/index.html
Terminal=0
StartupNotify=true
X-KDE-autostart-phase=2
X-KDE-autostart-condition=kalarmrc:General:AutostartTray:false">$menu/kalarm.desktop
fi

#################################
# 添加Kate
#################################
if [ ! -e $menu/kate.desktop ]; then
echo "[Desktop Entry]
Name=Kate
Name[zh_CN]=高级文本编辑器
Comment=Kate
Comment[zh_CN]=支持代码高亮等功能的高级文本编辑器
Exec=kate
Icon=kate
Terminal=0
Type=Application">$menu/kate.desktop
fi

#################################
# 添加直接出现在系统托盘里的剪贴板
#################################
if [ ! -e $menu/klipper.desktop ]; then
echo "[Desktop Entry]
Name=Klipper
Name[zh_CN]=剪贴板查看器
Exec=klipper
Icon=klipper
Type=Application
DocPath=klipper/index.html
Terminal=0
StartupNotify=true
X-KDE-autostart-phase=2
X-KDE-autostart-condition=klipperrc:General:AutostartTray:false">$menu/klipper.desktop
fi

#################################
# 接下来是给面板菜单添加桌面选择
#################################
if [ ! -e /usr/share/apps/kicker/applets/minipagerapplet.desktop ]; then
echo "[Desktop Entry]
Name=Pager
Name[zh_CN]=切换桌面
Comment=A basic desktop switching panel applet
Comment[zh_CN]=在多个桌面中选择工作桌面
Icon=kpager
X-KDE-Library=minipager_panelapplet
X-KDE-UniqueApplet=false">/usr/share/apps/kicker/applets/minipagerapplet.desktop
fi
回复 支持 反对

使用道具 举报

发表于 2005-5-19 00:44:18 | 显示全部楼层
楼主你说:--------------------------------
......(2)面板--提供了常见的面板配置功能,包括大小、长度、背景等......
-------------------------------------

怎么我的面板不能移到上面啊~~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-20 20:05:39 | 显示全部楼层
面板不能移到上面
========================
这个问题我解决不了,除非下载红旗桌面版4.1的kdebase的源代码,去掉patch,重新编译安装。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表