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

  • 相关阅读:
    高通Android分区表详解
    LC 871. Minimum Number of Refueling Stops 【lock, hard】
    LC 265. Paint House II
    Horovod 通信策略
    LC 351. Android Unlock Patterns
    LC 957. Prison Cells After N Days
    解析java泛型(二)
    解析java泛型(一)
    全面理解java异常机制
    java基础之继承(二)
  • 原文地址:https://www.cnblogs.com/davidhhuan/p/3313945.html
Copyright © 2011-2022 走看看