I have nvidia card with connected 3 monitors configurated as separate x
screens.

Without patched nautilus:
1) I have white background on second and third screen.
2) All nautilus windows opens on primary/first screen

With patched nautilus:
1) Background is ok on all screens. (this patch is included in merge proposal)
2) I can open nautilus window on any screen. (this patch is NOT included in 
merge proposal)

Patch to allow open nautilus window on any screen is simple. It works by
creating new instance of nautilus when opening on other screen. Patch is
available here - https://bugzilla.gnome.org/show_bug.cgi?id=705317

Added these lines to nautilus_desktop_background_constructor function in 
libnautilus-private/nautilus-desktop-background.c
-----
GdkScreen *screen = gtk_widget_get_screen(singleton->details->widget);
g_printerr("Desktop background constructed for screen: %i\n", 
gdk_screen_get_number(screen));
----
and these lines to nautilus_application_new function in 
src/nautilus-application.c
----
g_printerr("Application id: %s\n", application_id);
----

* Builded new packages and installed them. Opened terminal on all screens.
* Killed nautilus running - killall nautilus. Opened System Monitor to see that 
nautilus is not running anymore.
* Opened nautilus on first screen from terminal. Now there is one running 
instance for first screen with application id 'org.gnome.Nautilus.Display_0_0'. 
Background object is contructed only once for each screen.
--
Application id: org.gnome.Nautilus.Display_0_0
Desktop background constructed for screen: 0
Desktop background constructed for screen: 1
Desktop background constructed for screen: 2
--
* Opened nautilus on next screen from terminal. Now there is two instances of 
nautilus. In terminal is printed only line with application id. Lines from 
background constructor is NOT printed, so even running new instance nautilus is 
NOT creating new objects for background.
--
Application id: org.gnome.Nautilus.Display_0_2
--
* Opened on tird screen. Some thing as in previus point.
--
Application id: org.gnome.Nautilus.Display_0_1
--
* Killed all nautilus instances and opened first nautilus from other screen. 
--
Application id: org.gnome.Nautilus.Display_0_1
Desktop background constructed for screen: 0
Desktop background constructed for screen: 1
Desktop background constructed for screen: 2
--

So what tests are needed to approve patch?

It works! There is no problems, no regressions or anything like that.
This bug is almost two years old and is not fixed because of stupid
reason - 'seems a bit simple to me'.

** Bug watch added: GNOME Bug Tracker #705317
   https://bugzilla.gnome.org/show_bug.cgi?id=705317

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/885989

Title:
  white screen on second monitor when using two xsessions

Status in Nautilus:
  Confirmed
Status in “nautilus” package in Ubuntu:
  Triaged
Status in “nautilus” source package in Precise:
  Triaged

Bug description:
  If enable dual head mode (two X screens), the second monitor went
  white after login with unity or unity-2d. After tracking the gnome-
  session, it is caused by running "nautilus -n" for this configuration.
  And if kill the nautilus process, the desktop showed up normally on
  second screen.

  lsb_release -rd
  Description:    Ubuntu 11.10
  Release:        11.10

  apt-cache policy nautilus
  nautilus:
    Installed: 1:3.2.1-0ubuntu2
    Candidate: 1:3.2.1-0ubuntu2
    Version table:
   *** 1:3.2.1-0ubuntu2 0
          500 http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates/main amd64 
Packages
          100 /var/lib/dpkg/status
       1:3.2.0-0ubuntu5 0
          500 http://cn.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/885989/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to