您的位置:首页 > 其它

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右键菜单的方法!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: