GNOME Bugzilla – Bug 167847
New application windows don't have focus
Last modified: 2005-02-18 23:36:34 UTC
Please describe the problem: Steps to reproduce: 1. Right-click on the desktop, and choose "Open Terminal" from the menu. 2. The new window does not have focus. 1. Select an item on the desktop to give it focus. 2. Launch an application (such as Epiphany) from the panel 3. The new window does not have focus. This problem does not happen when starting applications from the Applications menu. Actual results: Expected results: Does this happen every time? Other information:
This basically renders panel launchers useless. I hadn't even noticed that windows get focus when launched from the menu until Murray pointed it out, because I almsot always use the couple of launchers I've put on my panel.
The "Open Terminal" item in the right click desktop menu is a problem with nautilus not using startup-notification. It's a dupe of bug 162424. The launching of Epiphany could be one of a couple things: (1) Your version of Epiphany is too old (they only recently added support for correctly handling startup-notification), (2) When you created the launcher you did it in such a way that the .desktop file does not contain "StartupNotify=true", or (3) you've found some issue that I'm unaware of. To find out which: What day did you pull Epiphany from CVS (or what is the version number you're running if running from tarballs)? Does the .desktop file corresponding to your launcher contain "StartupNotify=true"? The following command (or a slight change thereof; check the properties of your launcher to now the right string to search for) may be useful to you, run from your ~/.gnome2 directory: find . -name "*.desktop" | xargs grep -l "Epiphany Web Browser" | xargs \ grep "StartupNotify"
> The launching of Epiphany ... they only recently added support Actually, it was Firefox. Epiphany works fine. Sorry. I tried Firefox with and without StartupNotify=true. You are very clever.
Bugs in Firefox and Mozilla need to be filed at bugzilla.mozilla.org. ;-) Basically, all those weird apps that don't-open-a-window-but-request-that-a-previous-instance-do-it-for-them (e.g. Mozilla, Firefox, Epiphany, Galeon, gnome-terminal, nautilus, etc.) need to forward startup-notification information to that previous instance in order to make sure things work correctly. Firefox probably has partial support for this, in order to make sure the busy cursor doesn't get stuck and stay around for 20 seconds after the window opens. But, as of last October or so, these apps are also supposed to deal with timestamps. See bug 156413 for an example of how this support can be added.them. Anyway, I'll reopen and mark as a duplicate of bug 162424 because of the first of the two bugs you reported...
*** This bug has been marked as a duplicate of 162424 ***
Here is the firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=223492 Thanks.