人若无名,便可专心练剑

 dconf 标签

linux gnome desktop reset

  |   0 评论   |   467 浏览

对于经常使用gnome作为桌面环境的时候,有时候长时间使用不小心更新了或者修改了什么配置导致桌面环境崩溃后,
不能登陆进入桌面环境,每次登陆都会crash,那么我们怎么能比较好的恢复登陆呢,我们可以采用tty模式,

ctrl+alt+F(1-7)

然后console状态登陆对应用户名,然后执行如下命令,就可以进行恢复。
注意:这个操作相当于对当前使用目录的配置进行"出厂设置",因此很多配置我们都需要重新进行设置

dconf reset -f /

详细项目:


Usage:
  dconf COMMAND [ARGS...]

Commands:
  help              Show this information
  read              Read the value of a key
  list              List the contents of a dir
  write             Change the value of a key
  reset             Reset the value of a key or dir
  compile           Compile a binary database from keyfiles
  update            Update the system databases
  watch             Watch a path for changes
  dump              Dump an entire subpath to stdout
  load              Populate a subpath from stdin

Use 'dconf help COMMAND' to get detailed help.

read
           Read the value of a key.

       list
           List the sub-keys and sub-directories of a directory.

       write
           Write a new value to a key.

       reset
           Reset a key or an entire directory. For directories, -f must be specified.

       compile
           Compile a binary database from keyfiles.

           The result is always in little-endian byte order, so it can be safely installed in 'share'. If it is used on a big endian machine,
           dconf will automatically byteswap the contents on read.

       update
           Update the system dconf databases.

       watch
           Watch a key or directory for changes.

       dump
           Dump an entire subpath to stdout. The output is in a keyfile-like format, with values in GVariant syntax.

       load
           Populate a subpath from stdin. The expected format is the same as produced by dump.