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

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/777292

Title:
  Gedit not single instance when started from unity

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/777292/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to