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 91976 - [Multihead] Only one instance of gedit can be invoked
[Multihead] Only one instance of gedit can be invoked
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.0.2
Other All
: High normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2002-08-29 11:46 UTC by robert.kinsella
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
said patch (3.11 KB, patch)
2002-11-07 05:13 UTC, Mark McLoughlin
none Details | Review
a patch that actually works .. sigh (3.17 KB, patch)
2002-11-07 05:16 UTC, Mark McLoughlin
none Details | Review

Description robert.kinsella 2002-08-29 11:46:05 UTC
Solaris  8 fcs multihead - non - xinerama Gnome SUN beta2 build 4.

Select applications, accessories, text editor on screen 0.
gedit is launched.

on screen 1 select applications, accessories, test edit.

gedit cannot be invoked twice. Result, a user in a multihead
environment cannot have the application open on all screens.
Comment 1 Paolo Maggi 2002-08-29 13:50:58 UTC
Try to run 
  gedit --new-window

and lemme know if this solves your problem.
Comment 2 Paolo Maggi 2002-09-04 13:34:08 UTC
Robert: ?
Comment 3 robert.kinsella 2002-09-09 17:16:14 UTC
Open gedit on screen1, goto screen 2 type gedit --new-window

expected result:-
gedit should open on screen 2

actual result
gedit opens on screen 1

Similarly
(first close all gedit windows)
Open Gedit on screen2
goto screen 1, type gedit --new-window

Expected result
gedit launches on screen1
actual result
gedit launches on screen2

Comment 4 Mark McLoughlin 2002-09-20 03:59:24 UTC
Paolo: the easy way to fix this is to have a seperate instance of
gedit per screen ... to do that you just need to make sure you create
an AID for bonobo-activation using
bonobo_activation_make_registration_id(). This will given you a
different AID per screen .. gnome-terminal does this the right way if
you want to poke at the code there ...

Comment 5 Paolo Maggi 2002-09-20 08:44:44 UTC
Mark: thanks

James: could you try to fix it? You know... CORBA stuff is your field :)
Comment 6 Mark McLoughlin 2002-11-07 05:12:45 UTC
Hey Paolo: here's a patch to do what I said. Okay to commit to HEAD ?
Comment 7 Mark McLoughlin 2002-11-07 05:13:39 UTC
Created attachment 12112 [details] [review]
said patch
Comment 8 Mark McLoughlin 2002-11-07 05:16:18 UTC
Created attachment 12113 [details] [review]
a patch that actually works .. sigh
Comment 9 Paolo Maggi 2002-11-07 09:44:12 UTC
Mark: please commit to HEAD. Thanks.
Comment 10 Mark McLoughlin 2002-11-07 22:07:52 UTC
2002-11-07  Mark McLoughlin  <mark@skynet.ie>
                                                                     
                                       
        * gedit-application-server.[ch]: (gedit_application_server_new):
        Register a new factory per-screen. A lot easier than implementing
        multiscreen support :-) Fixes #91976.
                                                                     
                                       
        * gedit2.c: (main): upd.