GNOME Bugzilla – Bug 699165
Need to press F9 twice in nautilus when starting without sidebar
Last modified: 2014-01-12 02:58:44 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.
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
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.
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.
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.
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.
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.
*** Bug 710427 has been marked as a duplicate of this bug. ***
*** Bug 721641 has been marked as a duplicate of this bug. ***
Paul, thanks for the patch. I pushed a modified version of it to git master and gnome-3-10. Closing as FIXED.
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
Sure thing, it's in both gnome-3-8 and gnome-3-10 now.