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 707910 - It is not possible to open two gedit windows on different screens
It is not possible to open two gedit windows on different screens
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 705736 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-09-11 13:33 UTC by Alberts Muktupāvels
Modified: 2014-06-06 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Create new gedit instance if next window launched on other screen (1.13 KB, patch)
2013-09-11 13:33 UTC, Alberts Muktupāvels
none Details | Review

Description Alberts Muktupāvels 2013-09-11 13:33:17 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.
Comment 1 André Klapper 2013-09-11 16:21:52 UTC
> 3) Try to open gedit on second screen.

How exactly? There are many ways to open an application.
Comment 2 Alberts Muktupāvels 2013-09-11 16:29:19 UTC
(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...
Comment 3 André Klapper 2013-09-11 16:40:56 UTC
GNOME 3.8 has no gnome-panel but you state that you run gedit 3.8.
Comment 4 Alberts Muktupāvels 2013-09-11 17:13:17 UTC
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).
Comment 5 Paolo Borelli 2014-04-12 09:47:04 UTC
*** Bug 705736 has been marked as a duplicate of this bug. ***