[Ubuntu] Ubuntu13.04, the desktop freezed after login

时间:2024-07-31 18:35:08

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:): 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:): 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:): 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