← Back to team overview

desktop-packages team mailing list archive

[Bug 777292] 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

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

Title:
  Gedit not single instance when started from unity

Status in Unity:
  Confirmed
Status in “gedit” package in Ubuntu:
  Confirmed
Status in “unity” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: gedit

  Normally, gedit is a single instance application, meaning that it is
  started only once, and subsequent invocations are merged into the
  already running instance.

  When starting gedit from unity (either via dash, or via Alt+F2) and
  later from somewhere else (I tested opening a file in nautilus,
  opening a file from the archive manager, and running from the command
  line), gedit is started a second time.

  $ lsb_release -rd
  Description:	Ubuntu 11.04
  Release:	11.04

  $ apt-cache policy gedit
  gedit:
    Installed: 2.30.4-2ubuntu1
    Candidate: 2.30.4-2ubuntu1
    Version table:
   *** 2.30.4-2ubuntu1 0
          500 http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ natty/main amd64 Packages
          100 /var/lib/dpkg/status

  $ apt-cache policy unity
  unity:
    Installed: 3.8.12-0ubuntu1
    Candidate: 3.8.12-0ubuntu1
    Version table:
   *** 3.8.12-0ubuntu1 0
          500 http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ natty-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       3.8.10-0ubuntu2 0
          500 http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ natty/main amd64 Packages

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