#848631 is a duplicate. I made a comment in there that may or may not be relevant:
In a terminal, run gedit. Nothing will happen. Then, in a second terminal, run gedit again. Now a window pops up. The interesting thing is the second instance exited immediately. The first instance is still running, but now the following message appears on STDERR: ** (gedit:5671): CRITICAL **: _gedit_app_get_window_in_viewport: assertion `GEDIT_IS_WINDOW (window)' failed I had a similar problem with empathy's chat window not showing up the first time you click Chat (but it does the second time.) Is this perhaps a problem with Unity? -- 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 “gedit” package in Ubuntu: Fix Released Status in “unity” package in Ubuntu: Confirmed Status in “gedit” source package in Oneiric: Confirmed Status in “unity” source package in Oneiric: Confirmed 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/ubuntu/+source/gedit/+bug/827414/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp