GNOME Bugzilla – Bug 707910
It is not possible to open two gedit windows on different screens
Last modified: 2014-06-06 13:55:36 UTC
Created attachment 254679 [details] [review] Create new gedit instance if next window launched on other screen Overview: It is not possible to open two gedit windows on different screens in multi screen setup (separate x screens). Steps to Reproduce: 1) Configure screens as separate x screens. 2) Open gedit on first screen. 3) Try to open gedit on second screen. Actual Results: Gedit will create new tab in first screen gedit window. Expected Results: Gedit opens new window on second screen not new tab on first screen. So at end I have one window on first screen and one on second screen. Build Date & Platform: Additional Builds and Platforms: Additional Information: It can be easily fixed. When launching gedit in multi screen environment append Display_{display number}_{screen number} to application id. So if I launch gedit on both screens there will be to gedit instances with applications ids - org.gnome.Gedit.Display_0_1 and org.gnome.Gedit.Display_0_2. Same way works gnome-terminal (by creating new instance for each screen). Attaching patch with my fix, but feel free to change it if it is necessary. This patch will affect only multi screen users. It would be nice if patch is included in version 3.8 and up.
> 3) Try to open gedit on second screen. How exactly? There are many ways to open an application.
(In reply to comment #1) > > 3) Try to open gedit on second screen. > > How exactly? There are many ways to open an application. I am opening from gnome-panel. But I guess it does not matter...
GNOME 3.8 has no gnome-panel but you state that you run gedit 3.8.
I am using ubuntu 13.10. It has gnome flashback session which includes gnome-panel (3.6.2). But as I said it does not matter from where I open gedit. When opens first gedit window it creates new instance, it has data about display, screen on which it is opened. When i try open gedit on second screen it does not create new instance because there is one already with id "org.gnome.Gedit" so it executes open function on primary instance. But primary instance does not know that I am trying to open window on other screen. It has data/info only about screen on which was launched first window. Same thing happens with nautilus. I have found that this is simplest solution to this problem. And this solution is used by gnome-terminal. I know that multi screen (separate x screen) setups is not widely used, but I am using. There are others too. So it would be nice if this fix is included or someone offers better fix for it. This fix wont affect standard user with one screen and one monitor or on screen and multiple monitors (nvidia twinview).
*** Bug 705736 has been marked as a duplicate of this bug. ***