zoukankan      html  css  js  c++  java
  • [Ubuntu] Ubuntu13.04, the desktop freezed after login

    My os version is Ubuntu13.04, today, after started and logined, my desktop freezed. But i can still start the software in the left launcher.

    I reveive a system bug report that the /usr/bin/gnome-screensaver is crashed.

    Then, i start the terminal, and try to start the screensaver.

    gnome-screensaver

    i got these error:

    (gnome-screensaver:13475): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.background' does not contain a key named 'draw-background'

    After google for a while, i found these solution.

    sudo vim /usr/share/glib-2.0/schemas/org.gnome.desktop.background.gschema.xml

    add the code as below

    <key type="b" name="draw-background">
      <default>true</default>
      <summary>Have file manager handle the desktop</summary>
      <description>If set to true, then file manager will draw the icons on the desktop.</description>
    </key>

    then restart the glib-compile-schemas

    sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

    replace the unity

    unity --replace

    It is ok now!

    By the way, before google for the solution below, i also fix the bug of brightness & lock

    errors:

    (gnome-control-center:13500): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.screensaver' does not contain a key named 'show-notifications'
    Trace/breakpoint trap (core dumped)
    
    (gnome-control-center:13512): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.screensaver' does not contain a key named 'ubuntu-lock-on-suspend'
    Trace/breakpoint trap (core dumped)

    solution:

    sudo vim /usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.xml

    add these code

    <key type="b" name="show-notifications">
      <default>true</default>
      <summary>dummy summary</summary>
      <description></description>
    </key>
    <key type="b" name="ubuntu-lock-on-suspend">
      <default>true</default>
      <summary>dummy summary</summary>
      <description></description>
    </key>

    then

    sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

    Have fun with Ubuntu

  • 相关阅读:
    「系统集成方案」智慧工地
    「Django」学习之路,持续更改
    「Django」与mysql8连接的若干问题
    「Python」socket指南
    「Python」35个知识点
    「CSS」文本编排相关的CSS属性设置
    「CSS」css基础
    bWAPP----HTML Injection
    bWAPP----HTML Injection
    bWAPP----HTML Injection
  • 原文地址:https://www.cnblogs.com/davidhhuan/p/3313945.html
Copyright © 2011-2022 走看看