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 699165 - Need to press F9 twice in nautilus when starting without sidebar
Need to press F9 twice in nautilus when starting without sidebar
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Sidebar
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 710427 721641 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-28 18:06 UTC by gdwarf
Modified: 2014-01-12 02:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] nautilus-window.c: Toggle the menu item »Show Sidebar« depending on GSettings configuration (2.22 KB, patch)
2013-10-22 20:10 UTC, Paul Menzel
reviewed Details | Review

Description gdwarf 2013-04-28 18:06:09 UTC
When starting Nautilus without sidebar (dconf-editor: org.gnome.nautilus.window-state start-with-sidebar=false), F9 needs to be pressed twice to make the sidebar reappear.
Comment 1 Paul Menzel 2013-10-18 14:04:11 UTC
Bug 710427 [1] seems to be the same.

1. What distribution do you use?

2. What version do you use now?

3. Do you still experience this problem?

4. Could you please describe if in the menu »Sidebar« is toggled each time you press F9?

I wonder because, I’d imagine you have to press F9 three times. First to enable the sidebar, which does not work. (Is the Sidebar option checked?) Then, pressing F9 the second time, to disable it again and then, the third time, to enable it again.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=710427
Comment 2 gdwarf 2013-10-18 16:13:08 UTC
1. Ubuntu 13.04
2. Files (Nautilus) 3.6.3
3. Yes
4. The option is toggled every time I press F9.

- In dconf-editor, the option start-with-sidebar is turned off.

- On starting Nautilus, it opens without sidebar. However, the option 'Show Sidebar' in the 'View options' menu is checked.

- On pressing F9 for the first time, the option 'Show Sidebar' is unchecked. Still no sidebar.

- On pressing F9 for the second time, the option 'Show Sidebar' is checked again. Now the sidebar appears.

- On subsequent pressing of F9, the sidebar (and the menu option) are toggled as expected.

Tomorrow I will upgrade to Ubuntu 13.10, and check if it behaves differently.
Comment 3 gdwarf 2013-10-18 16:34:36 UTC
For completeness sake, I could add that I am using Ubuntu 13.04 with GNOME Shell, not Unity.

By default, the option start-with-sidebar is true, and sidebar toggling works as expected, first pressing of F9 making the sidebar disappear and the second pressing making it reappear. Only when I change the default setting of start-with-sidebar to false, nautilus does indeed start without sidebar, but the toggling mechanism seems to assume the sidebar is there anyway.
Comment 4 Paul Menzel 2013-10-19 08:28:11 UTC
As reported in bug 710427 [1], with Debian Sid/unstable and Nautilus 3.8 even if `start-with-sidebar` is set to `true`, the sidebar is not shown the first time.
Comment 5 António Fernandes 2013-10-19 10:14:51 UTC
I can reproduced this bug exactly as described by gdwarf, on Fedora 20 with nautilus 3.10.0. 

It happens every time if start-with-sidebar is set to false, and doesn't ever happen if it is set to true.
Comment 6 Paul Menzel 2013-10-22 20:10:01 UTC
Created attachment 257870 [details] [review]
[PATCH] nautilus-window.c: Toggle the menu item »Show Sidebar« depending on GSettings configuration

Please try this patch. Missing a development enviroment, I am neither able to build nor to run this. Thanks!

I am not sure, if `toggle_action` has to be freed or not.
Comment 7 Paul Menzel 2013-10-22 20:13:14 UTC
*** Bug 710427 has been marked as a duplicate of this bug. ***
Comment 8 António Fernandes 2014-01-06 18:03:16 UTC
*** Bug 721641 has been marked as a duplicate of this bug. ***
Comment 9 Cosimo Cecchi 2014-01-06 19:21:58 UTC
Paul, thanks for the patch. I pushed a modified version of it to git master and gnome-3-10. Closing as FIXED.
Comment 10 Paul Menzel 2014-01-11 18:39:59 UTC
Cosimo, thanks a lot for committing a bug fix. For the record, this is commit »window: sync initial state for start-with-sidebar action« [1].

Cosimo, is there a chance to backport this to the gnome-3.8 and gnome-3.10 branch? That would be awesome.


[1] https://git.gnome.org/browse/nautilus/commit/?id=eaa67078299c20fa8eb139e5161a101d3f089efb
Comment 11 Cosimo Cecchi 2014-01-12 02:58:44 UTC
Sure thing, it's in both gnome-3-8 and gnome-3-10 now.