|
发表于 2006-7-13 08:45:51
|
显示全部楼层
④使用鼠标右键来启用、禁用服务
编辑文件:
gedit ~/.gnome2/nautilus-scripts/aiglx
添加内容:
#!/bin/bash
title="Aiglx Service"
#Date: 3-19-2006
# Wriiten By: fedorajim@gmail.com
zenity --question --text "Do you want to turn On or Off the AIGLX Service? Yes=On / Cancel=Off" --title="$title"
if [ "$(echo $?)" == "1" ] #They clicked "no"
then # Turn off the AIGLX Service
gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false
else
# turn on the AIGLX Service
gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true
fi
保存文件,使其可执行
chmod u+x ~/.gnome2/nautilus-scripts/aiglx |
|