Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 5546  / 1 Year ago, mon, february 13, 2023, 5:44:33

After the upgrade from Ubuntu 13.10 to 14.04 in Nautilus (3.10.1), in the toolbar it is missing the context-menu button (those with a gear icon) in the upper right corner, near the search icon.



To be clear the button highlighted in red here:



enter image description here



This was present in Nautilus in Ubuntu 13.10. Is it normal that now is it disappeared? Is there a way to add this button?


More From » nautilus

 Answers
5

As far as I know... with nautilus 3.10 in Ubuntu 14.04 there is a new patch to the source named restore-traditional-menu-bar.patch to bring back the "File | Edit | View | Go | Bookmarks | Help" menus instead the new "View" & "Location" buttons.




In Nautilus 3.6, introduced in raring, the menu layout was changed
from the traditional all-entries-in-one-menubar to:
* an application menu called "Files" in the Unity menu bar
* a view menu has moved to some toolbar buttons and a dropdown under an arrow in the upper right of a window
* all other menu items have moved to a cog button dropdown in the upper right of a window



For Unity, we should probably switch back to the more traditional
layout (and keep the new layout for GNOME). I'll assign an Ayatana
task to get design guidance on what the layout should be.



------------------------ Desired resolution:




  • Remove the 'cog' icon from the top right of the Nautilus toolbar. Move the view and search buttons over to the right, so that the right
    most view button occupies the position which previously held the cog
    button.




In this way if you are using Unity you have the traditional menu, but if you are using gnome, gnome-session-flashback you have the new menu buttons.



Nautilus in Unity:



enter image description here



Nautilus in Gnome-Flashback:



enter image description here



If you want to have the traditional menu with the new buttons in Unity...You can try to edit the nautilus source code.



NOTE: I recommend you to do this in a Virtual Machine or in a Test Machine to see is everything is OK.
In this example I'm running Ubuntu "14.04" with "nautilus 3.10.1".



1) Make sure you have enable the Source code repository




  • Open the Ubuntu Software Center

  • In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
    Just in case I use the "Main Server" to Download.



enter image description here



Open a Terminal window Ctrl+Alt+T and type:




  • sudo apt-get update



2) In the Terminal type the following to install the necessary packages.




  • sudo apt-get install build-essential quilt



3) Install build dependencies.




  • sudo apt-get build-dep nautilus



4) Create a folder to download the source code.




  • mkdir ~/Downloads/src


  • cd ~/Downloads/src




5) Download the source code & Export variables.




  • apt-get source nautilus


  • export QUILT_PATCHES=debian/patches


  • export EDITOR=gedit




6) Create the patch and Edit the source code.




  • cd nautilus-3.10.1/


  • quilt new 99_restore_menu_buttons.patch


  • quilt edit src/nautilus-toolbar.c




Remove the lines... 550 and 572.



Remove the line 550




if (nautilus_toolbar_show_menu_buttons ()) {




Remove the line 572




}




Save the changes.



Before:



enter image description here



After:



enter image description here



7) Compile and build the deb packages.




  • quilt refresh


  • fakeroot dpkg-buildpackage




8) Install the deb packages.




  • cd ..


  • sudo dpkg -i *deb




9) Finally you can logout & Login or Kill Nautilus and restart it or Reboot your machine to see the changes.



Before:



enter image description here



After:



enter image description here



enter image description here



Hope this helps.


[#25368] Tuesday, February 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
termetalli

Total Points: 326
Total Questions: 127
Total Answers: 110

Location: Sao Tome and Principe
Member since Sat, Sep 12, 2020
4 Years ago
termetalli questions
Sat, Apr 30, 22, 17:54, 2 Years ago
Mon, Dec 6, 21, 05:24, 2 Years ago
Thu, Jun 30, 22, 00:32, 2 Years ago
Mon, Dec 19, 22, 00:15, 1 Year ago
;