This is because in Unity's environment, DBUS_STARTER_ADDRESS is set. And in gedit (gedit-dbus.c:767), that will trigger gedit to start as a service instead of a standalone window. So it won't show anything, but it will be around to grab and proxy future gedit opens (as you see when you try to launch it the second time).
Not sure of the proper fix for this yet. -- 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 : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

