Comment 44 for bug 508890

Revision history for this message
Raphael Gradenwitz (raphael-gradenwitz) wrote :

I switch between 1 and 2 Xscreens with a special key on my vaio VGN-Z wich causes an acpi event. That event links the /etc/X11/xorg.conf to the one needed for one- or for two X-Screens and restarts the gdm.

I made a workaround to bypass the trouble this bug effects:

I created the file /etc/gdm/PostLogin/Default as follows:

----------------------
#!/bin/sh
#
# workaround for bug https://bugs.launchpad.net/ubuntu/lucid/+source/nautilus/+bug/508890

    show_desktop='true'
    grep Screen1 /etc/X11/xorg.conf && show_desktop='false'
    eval su $USER -c \'gconftool-2 -s /apps/nautilus/preferences/show_desktop -t bool $show_desktop\'
----------------------

.. and made it executable.

This detects if 1 or two X-screens are driven and activates or deactivates the /apps/nautilus/preferences/show_desktop option as required.