Gnome桌面的定制(修改面板 修改右键菜单) [初级]
2015-08-14 10:32
513 查看
因为要定制一个linux的桌面运行平台,而且比较熟悉gnome所以把gnome做为定制的环境
定制工作主要处理
右键菜单,面板,快捷键,桌面图标
除了右键菜单和一些特定的快捷键外,基本都可以修改gconf来完成的
下面是修改的命令,脚本
#禁用一些系统全局的设置
#禁用用户切换
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_user_switching true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_print_setup true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_printing true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_lock_screen true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_command_line true
#设置工作区数
gconftool-2 -t int -s /apps/metacity/general/num_workspaces 1
#设置桌面图标的显示
gconftool-2 -t bool -s /apps/nautilus/desktop/computer_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/home_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/network_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/trash_icon_visible false
#不显示已挂载的卷
gconftool-2 -t bool -s /apps/nautilus/desktop/volumes_visible false
#面板设置
#gconftool-2 --recursive-unset /apps/panel/applets
#gconftool-2 --recursive-unset /apps/panel/objects
gconftool-2 -t string -s /apps/panel/toplevels/bottom_panel/orientation bottom
gconftool-2 -t list --list-type=string -s /apps/panel/general/applet_id_list [window_list]
gconftool-2 --unset /apps/panel/general/object_id_list
gconftool-2 -t list --list-type=string -s /apps/panel/general/toplevel_id_list [bottom_panel]
gconftool-2 -t bool -s /apps/panel/applets/window_list/locked false
gconftool-2 -t int -s /apps/panel/applets/window_list/position 0
gconftool-2 -t bool -s /apps/panel/applets/window_list/locked true
#快捷方式设置
#gconftool-2 --recursive-unset /apps/metacity/global_keybindings
#gconftool-2 --recursive-unset /apps/metacity/keybinding_commands
#gconftool-2 --recursive-unset /apps/metacity/window_keybindings
gconftool-2 --recursive-list /apps/metacity/global_keybindings | sed
's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s
\/apps\/metacity\/global_keybindings\//g' | sh
gconftool-2 --recursive-list /apps/metacity/keybinding_commands | sed
's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s
\/apps\/metacity\/keybinding_commands\//g' | sh
gconftool-2 --recursive-list /apps/metacity/window_keybindings | sed
's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s
\/apps\/metacity\/window_keybindings\//g' | sh
都比较简单!
如果大家想看命令的具体作用,可使用gconf-edit 查到相应的路径,它会有很详细的说明。
不知道是否有人了解不用修改源代码来屏蔽gnome右键菜单的方法!
因为要定制一个linux的桌面运行平台,而且比较熟悉gnome所以把gnome做为定制的环境
定制工作主要处理
右键菜单,面板,快捷键,桌面图标
除了右键菜单和一些特定的快捷键外,基本都可以修改gconf来完成的
下面是修改的命令,脚本
#禁用一些系统全局的设置
#禁用用户切换
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_user_switching true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_print_setup true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_printing true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_lock_screen true
gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_command_line true
#设置工作区数
gconftool-2 -t int -s /apps/metacity/general/num_workspaces 1
#设置桌面图标的显示
gconftool-2 -t bool -s /apps/nautilus/desktop/computer_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/home_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/network_icon_visible false
gconftool-2 -t bool -s /apps/nautilus/desktop/trash_icon_visible false
#不显示已挂载的卷
gconftool-2 -t bool -s /apps/nautilus/desktop/volumes_visible false
#面板设置
#gconftool-2 --recursive-unset /apps/panel/applets
#gconftool-2 --recursive-unset /apps/panel/objects
gconftool-2 -t string -s /apps/panel/toplevels/bottom_panel/orientation bottom
gconftool-2 -t list --list-type=string -s /apps/panel/general/applet_id_list [window_list]
gconftool-2 --unset /apps/panel/general/object_id_list
gconftool-2 -t list --list-type=string -s /apps/panel/general/toplevel_id_list [bottom_panel]
gconftool-2 -t bool -s /apps/panel/applets/window_list/locked false
gconftool-2 -t int -s /apps/panel/applets/window_list/position 0
gconftool-2 -t bool -s /apps/panel/applets/window_list/locked true
#快捷方式设置
#gconftool-2 --recursive-unset /apps/metacity/global_keybindings
#gconftool-2 --recursive-unset /apps/metacity/keybinding_commands
#gconftool-2 --recursive-unset /apps/metacity/window_keybindings
gconftool-2 --recursive-list /apps/metacity/global_keybindings | sed
's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s
\/apps\/metacity\/global_keybindings\//g' | sh
gconftool-2 --recursive-list /apps/metacity/keybinding_commands | sed
's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s
\/apps\/metacity\/keybinding_commands\//g' | sh
gconftool-2 --recursive-list /apps/metacity/window_keybindings | sed
's/= .*$/disabled/g' | sed 's/^ /gconftool-2 -t string -s
\/apps\/metacity\/window_keybindings\//g' | sh
都比较简单!
如果大家想看命令的具体作用,可使用gconf-edit 查到相应的路径,它会有很详细的说明。
不知道是否有人了解不用修改源代码来屏蔽gnome右键菜单的方法!
相关文章推荐
- 进制转换
- Linux环境Nginx安装多版本PHP
- 微软中国裁员曝光:在CD结束后!薪酬不变!
- 网络篇----NSURLSession下载篇
- jquery在线手册
- HTML 提示 - 如何查看源代码
- 管式超滤系统:管式超滤膜的市场发展与应用领域
- Spring AOP的几种实现方式
- km算法
- Havok_2014-1-0_Pc_Xs_User_Guide(2.3.3-碰撞监听器)
- C语言的有符号与无符号,二进制整数的扩展与截断
- 认识Require
- cookies封装
- noip1997 代数表达式 (模拟)
- HDU 1087 Super Jumping! Jumping! Jumping!
- mysql5.X 增加新用户
- 遗传算法的一个例子
- Error:duplicate files during packaging of APK /Users/text01/Desktop/Android错误信息的解决办法
- android应用中去掉标题栏的方法(保留原样式)
- hdu 5381 The sum of gcd