After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705317 - Nautilus with separate x screens doesn't work correctly
Nautilus with separate x screens doesn't work correctly
Status: RESOLVED WONTFIX
Product: nautilus
Classification: Core
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-01 20:53 UTC by Alberts Muktupāvels
Modified: 2014-06-06 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Open nautilus window in correct screen. (956 bytes, patch)
2013-08-09 17:50 UTC, Alberts Muktupāvels
rejected Details | Review

Description Alberts Muktupāvels 2013-08-01 20:53:57 UTC
Overview:
Nautilus always opens all windows on screen on which was opened first window.

Steps to Reproduce:
1) Set up separate x screens (two or more). I am using three screens.
2) Open nautilus window on first screen, than try to open other window on second screen. It will open on first.
3) Kill nautilus, than open nautilus on second screen. Than tray to open other window on first screen. It will open on second screen.

Actual Results:
Nautilus windows always opens on one of screens.

Expected Results:
Nautilus should open window on screen from which it is called. We should be able to open one nautilus window on first screen, next window on second screen if we want so.

Additional Information:
There is one way to open nautilus on correct screen... If I open folder from desktop than it opens on correct screen. This way I can get nautilus windows on all screens I want. We should be able to do this from gnome-panel and/or gnome-terminal.
Comment 1 António Fernandes 2013-08-01 21:10:43 UTC
Looks like the same thing that happens with multiple workspaces on the same screen (bug 654811). The underlying bug may be the same.
Comment 2 Alberts Muktupāvels 2013-08-09 17:50:50 UTC
Created attachment 251254 [details] [review]
Open nautilus window in correct screen.

Created patch for this bug. With this patch I can open nautilus on each screen. Seems that patch doesn't break anything.
Comment 3 Cosimo Cecchi 2013-08-10 14:22:16 UTC
Review of attachment 251254 [details] [review]:

This is wrong - what happens with your patch is that a different instance of the application is opened for each display and screen. You should be able to keep a single instance instead, and create each toplevel window on the appropriate screen by using the information passed through startup notification.
Comment 4 Alberts Muktupāvels 2013-08-10 14:44:48 UTC
(In reply to comment #3)
> Review of attachment 251254 [details] [review]:
> 
> This is wrong - what happens with your patch is that a different instance of
> the application is opened for each display and screen. You should be able to
> keep a single instance instead, and create each toplevel window on the
> appropriate screen by using the information passed through startup
> notification.

Ok. Than how to pass data to nautilus_application_open function? If my way is not correct than it should get data about screen on which to open window not use gdk_screen_get_default (). 

Gnome Terminal is doing something to what I try to do in my patch. It create one instance for screen. If I open 3 terminals on first screen and 5 on second, there still will be only two instances.

I am speaking about separate x screens /multiple screens. This patch at least allows to open nautilus on any screen I want. I often need to open different windows on different screen.

Can you give me little more info how to fix this right way? 

Thanks for review!
Comment 5 Ruben 2013-09-01 15:11:05 UTC
This patch works perfectly for me. If you do not have any suggestions of a better way of fixing it, I think you should really consider Alberts' suggestion. It is a severe bug which only affects users of multiple x screens (which luckily are not the majority). It is definitely necessary to fix it in some way.