This is most likely not related to Unity, for the same problem occurs for me with Linux Mint 13 XFCE.
If gedit is started from terminal (just "gedit", no arguments passed), it doesn't show up, nothing is printed in terminal and thus effectively hangs in limbo. Task Manager sees it sitting around consuming 0% CPU, it doesn't terminate on it's own. When gedit is then started again, either via desktop shortcut/menu or another terminal window, it causes the first gedit instance to terminate with this message: ** (gedit:3900): CRITICAL **: _gedit_app_get_window_in_viewport: assertion `GEDIT_IS_WINDOW (window)' failed The second instance then shows up normally. If a filename was passed as argument, it opens the file as expected. If gedit is run with --standalone option, it always starts normally without fault, no matter what I tried. The above is 100% reliably reproducable for me. Now there are some oddities. For example when I start gedit from a panel (FYI: xfce4-panel 4.10.0), it always starts normally (launcher command: "gedit %U", or just "gedit"). When I doubleclick to open a text file in Thunar, the bug also occurs. When I do the same in Nautilus, the same works without the problem. By the looks of it, this is a gedit bug. Obviously, gedit tries to find a running instance so it can open a new tab in the existing instance. It probably lacks a robust handler for the condition where it fails -- for whatever reason -- to find a running instance. Hope that helps. -- 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/827414 Title: gedit fails to start on first try, but does on the second Status in Unity: Fix Released Status in Unity 2D: Fix Released Status in Unity Applications Lens: Fix Released Status in Unity Files Lens: Fix Released Status in “gedit” package in Ubuntu: Invalid Status in “unity” package in Ubuntu: Invalid Status in “unity-lens-applications” package in Ubuntu: Fix Released Status in “unity-lens-files” package in Ubuntu: Fix Released Status in “gedit” source package in Oneiric: Invalid Status in “unity” source package in Oneiric: Invalid Status in “unity-lens-applications” source package in Oneiric: Fix Released Status in “unity-lens-files” source package in Oneiric: Fix Released Bug description: The gedit window fails to appear when I start gedit on my first try. It does appear on my second try. This is true when starting from the launcher, opening a document from a folder, or opening a file using the terminal. I can see gedit did started the first time; the process is running. If I start gedit using --standalone it does work the first time. This implies that default behaviour is to start gedit in the background. The file is ignored when gedit starts in the background, so a second call is needed to load the document. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: gedit 3.1.3-0ubuntu1 ProcVersionSignature: Ubuntu 3.0.0-8.11-generic-pae 3.0.1 Uname: Linux 3.0.0-8-generic-pae i686 NonfreeKernelModules: nvidia wl Architecture: i386 Date: Tue Aug 16 10:29:05 2011 ExecutablePath: /usr/bin/gedit ProcEnviron: PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: gedit UpgradeStatus: Upgraded to oneiric on 2011-07-30 (17 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/827414/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

