Comment 12 for bug 777292

Revision history for this message
Christoph Korn (c-korn) wrote : Re: Gedit not single instance when started from unity

I tried to debug it a bit.
First I noticed that this opens a new tab.
1) run gedit from dash 2) run "gedit" in Terminal
While this opens a new process:
1) run gedit from dash 2) run "gedit file" in Terminal

I have debugged gedit a bit while the instance opened from dash was running:
$ GEDIT_DEBUG="" gedit gedit-3.2.0/gedit/gedit.c
[0.000017 (0.000017)] gedit.c:235 (main) Startup
[0,047591 (0,047574)] gedit-dbus.c:1651 (gedit_dbus_run)
[0,047937 (0,000346)] gedit-dbus.c:1682 (gedit_dbus_run) Own name org.gnome.gedit

[0,058506 (0,010569)] gedit-dbus.c:1604 (bus_acquired_cb)
[0,060411 (0,001905)] gedit-dbus.c:1638 (name_lost_cb)
[0,060512 (0,000101)] gedit-dbus.c:724 (handle_slave)

So it is doing some dbus start which seems to be the problem.

It is starting the dbus main loop here:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/gedit/oneiric/view/head:/gedit/gedit-dbus.c#L1685