After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 162424 - Focus bug from not using startup notification
Focus bug from not using startup notification
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
0.x.x [obsolete]
Other Linux
: High normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 167847 (view as bug list)
Depends on: 131792
Blocks:
 
 
Reported: 2004-12-29 05:32 UTC by Dennis Cranston
Modified: 2005-04-27 11:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Dennis Cranston 2004-12-29 05:32:11 UTC
1.  Close all applications.
2.  Right click on the desktop and select 'Open Terminal'.
3.  Left click in the terminal window.
4.  Right click on the desktop and select 'Open Terminal'.

A new terminal window opens but it does not have focus.
I am running gnome-terminal 2.9.3+ and metacity 2.9.3+.
Comment 1 Elijah Newren 2004-12-29 06:20:25 UTC
Nautilus is not launching the terminal with startup notification.
Comment 2 Havoc Pennington 2004-12-29 21:11:44 UTC
A simple "fix" we should probably do anyhow is to remove this menu item; as Bob
Lord pointed out, one of our goals is "eliminate the need to use the shell for
desktop users" and the first menu item on the desktop menu is "open terminal"

Plus there was some better feature in the works like "open terminal cd'd to this
directory" I think, which connects the terminal to the file manager context and
is thus more useful. And lots of people just make an "open terminal" keybinding
or panel launcher.

More on-topic: if a window totally lacks a timestamp, shouldn't we always focus
it? Why does gnome-terminal get a timestamp if startup notification isn't used?
You've probably explained this to me already...
Comment 3 Elijah Newren 2004-12-29 21:25:02 UTC
Yes, I have, but it's okay.  ;-)  When gnome-terminal is launched it doesn't
open a window--it tells another, already running process (another
gnome-terminal) to open one.  And most windows are opened in response to the
user interacting with that application, meaning that the gtk+ default is to set
the _NET_WM_USER_TIME of all new windows to the last interaction timestamp that
the user had with the application.  

In not-so-summary: nautilus doesn't use startup notification -> new terminal
process doesn't know when it was launched -> new terminal process can't tell old
process when it was launched -> old process doesn't have anything to set the
_NET_WM_USER_TIME to and just has to punt to the gtk+ default, which is wrong.
Comment 4 Elijah Newren 2005-01-03 04:55:25 UTC
Bug 131792 has a patch to "fix" this by removing the open terminal item from the
menu.
Comment 5 Elijah Newren 2005-02-18 23:27:45 UTC
*** Bug 167847 has been marked as a duplicate of this bug. ***
Comment 6 Dennis Cranston 2005-02-22 19:47:19 UTC
Nautilus-open-terminal should probably replace the Open Terminal menu item in
nautilus.  Unfortunately nautilus-open-terminal currently launches the terminal
using g_spawn_async(), so it doesn't support startup notification either.  :-(
Comment 7 Dennis Cranston 2005-02-25 02:00:27 UTC
Nautilus-open-terminal has been modified to launch gnome-terminal using the
gnome-desktop-item API, so nautilus-open-terminal no longer shares this same bug.
Comment 8 Elijah Newren 2005-03-01 04:36:34 UTC
This particular bug has been worked around in gnome-terminal (see bug 168812,
which is in gnome-terminal 2.9.3) so that for the most part correct behavior
will still be observed.  However, nautilus really should be either launching
with startup notification, or, better yet, removing that entry from the desktop
menu altogether (Bug 131792).
Comment 9 Alexander Larsson 2005-04-27 11:53:46 UTC
the item has been removed (see bug 131792)