[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

posted @ 2013-09-11 09:50  DavidHHuan  阅读(652)  评论(0编辑  收藏  举报