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 693815 - Nautilus does always not take the focus when called from terminal
Nautilus does always not take the focus when called from terminal
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-02-14 15:36 UTC by Marco Trevisan (Treviño)
Modified: 2021-06-18 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
NautilusWindow: present the window when grabbing focus (1.45 KB, patch)
2013-02-14 15:45 UTC, Marco Trevisan (Treviño)
needs-work Details | Review

Description Marco Trevisan (Treviño) 2013-02-14 15:36:50 UTC
This is basically the same of Bug 674816 that has been fixed only in case that nautilus is launched using the startup-id.

I can reproduce this issue both on the Shell or not, basically just run nautilus in a terminal close the opened window but don't kill the process; in another terminal launch again nautilus: not all the windows launched are getting the focus.

This is an issue caused by Gtk Bug 688830 (see the test case attached there), and can be easily "workarounded" using the attached patch.
Comment 1 Marco Trevisan (Treviño) 2013-02-14 15:45:18 UTC
Created attachment 236088 [details] [review]
NautilusWindow: present the window when grabbing focus
Comment 2 Cosimo Cecchi 2013-02-18 17:23:59 UTC
Review of attachment 236088 [details] [review]:

I don't think this is correct.
- we shouldn't be working around GTK bugs at this level. I believe GtkApplication should set a better startup ID in before_emit() in this case? I suppose this is only an issue when launched from a terminal, right?
- nautilus_window_grab_focus() would be the wrong place to do this anyway, we should do this where we create and present the window
Comment 3 André Klapper 2021-06-18 15:16:00 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.