Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 141

Thread: Patch to add "up" and "home" buttons to Nautilus toolbar

  1. #1
    Join Date
    Apr 2006
    Beans
    Hidden!

    Patch to add "up" button to Nautilus toolbar

    When I upgraded to Oneiric, I was disappointed with the changes to Nautilus. Specifically, I didn't like the removal of the up button (up to parent folder) from the toolbar. I was also annoyed that the reload button and the home button were removed from the toolbar. In addition, I wanted to move the buttons to the left of the location entry.


    So I made a patch to make Nautilus look like this:




    Instead of this:




    It works for me, but I'm not much of a coder, so no guarantees.
    Of course, others are free to modify this for their own needs.
    I should note, this patch is intended for 11.10 Oneiric. Previous versions do no need this patch because they already have this functionality.


    I've made three versions of the patch that do different things. The first only adds the up button. The second adds the up and home buttons. The third adds up, reload and home buttons. Only one is needed. Choose the patch to download here:

    nautilus-up_button-patch.txt (Up button only)
    nautilus-toolbar-patch.txt (Up and Home buttons)
    nautilus-toolbar-patch.txt (Up, Reload and Home buttons)



    INSTRUCTIONS:

    Make a new directory to work in, then download the nautilus source code and dependencies:

    Code:
     mkdir nautilus-mod
    cd nautilus-mod
    apt-get source nautilus
    sudo apt-get build-dep nautilus
    Then go to the nautilus source directory:

    Code:
    cd nautilus-3.2.1
    and move the nautilus-toolbar-patch.txt file to the source directory

    Code:
    mv [location of patch] .
    Patch the source code:

    Code:
    patch -p1 < nautilus-toolbar-patch.txt
    If the patch is successful, build nautilus

    Code:
    ./configure --prefix=/usr
    make
    Kill any running nautilus process, then install system-wide:

    Code:
    killall -KILL nautilus
    sudo make install
    Last edited by flar; February 27th, 2012 at 04:35 PM. Reason: better instructions

  2. #2
    Join Date
    Sep 2011
    Location
    Wherever I go, Here I am
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    Will have to give it a shot. Nice, Thanks
    Please mark your thread as Solved when appropriate || My WIKI
    ---------------------------


  3. #3
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    So far so good. I've been using the patched version of nautilus heavily for a week and no problems at all.

  4. #4
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    Here is another patch the only adds the up button to the nautilus toolbar:

    nautilus-up_button-patch.txt


    Here is the result:


  5. #5
    Join Date
    Mar 2005
    Location
    Warsaw, Poland
    Beans
    8

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    Wow! It works. It is awesome! I've been waiting for this patch for so long. Many thanks!

    Question: will I have to patch nautilus again when my ubuntu will update itself to next version?

    Greetings,

    W.

  6. #6
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    A new patch, this one adds the up button, the reload button, and the home button, like this:



    Download here: nautilus-toolbar-patch.txt

  7. #7
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    Quote Originally Posted by wojtalik View Post
    Wow! It works. It is awesome! I've been waiting for this patch for so long. Many thanks!

    Question: will I have to patch nautilus again when my ubuntu will update itself to next version?

    Greetings,

    W.

    If nautilus is updated, it will overwrite the patched version.

    There are numerous ways to handle this:

    You could just go into the previously patched nautilus folder and run sudo make install again.


    Or, you could pin the current version of nautilus so it never gets updated


    Or, you could use checkinstall instead of sudo make install. Make your package have a high version number so it never gets updated.

  8. #8
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,382
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    I followed up to the mv command then you lost me. I saved the patch to my desktop but don't know how to move it to the proper place because I don't know what the place is. I found all the nautilus files from synaptic but there are a ton of them and I don't want to screw up nautilus, thanks. It seems so weird to me that at every turn ubuntu 11.10 removes functions rather than adding or improving them. I really miss that up button.

  9. #9
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    Quote Originally Posted by cmcanulty View Post
    I followed up to the mv command then you lost me. I saved the patch to my desktop but don't know how to move it to the proper place because I don't know what the place is. I found all the nautilus files from synaptic but there are a ton of them and I don't want to screw up nautilus, thanks. It seems so weird to me that at every turn ubuntu 11.10 removes functions rather than adding or improving them. I really miss that up button.
    When you "apt-get source nautilus" it will create a new folder called nautilus-3.2.1 containing the source code for nautilus. You have to move the patch file into that folder and apply the patch to the source code. Then build and install. Nothing affects your current nautilus files until you type "sudo make install"

    If you want nautilus back to its original state, do "sudo make uninstall" and reinstall nautilus with this command:

    Code:
    sudo apt-get install --reinstall nautilus

  10. #10
    Join Date
    Jan 2007
    Location
    Location: Location:
    Beans
    1,246
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Patch to add "up" and "home" buttons to Nautilus toolbar

    flar, this is magnificent. I really missed that up arrow lol.
    clear && echo paste url and press enter; read paste; (youtube-dl $paste) | zenity --progress --title="" --text "Downloading, please wait" --auto-close --pulsate && ans=$(zenity --file-selection); gnome-terminal -x mplayer "$ans"

Page 1 of 15 12311 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •