Comment 20 for bug 301552

Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote :

Sancho, np ;-) but if you wanna try it out anyway here's a quick guide to let you patch nautilus manually (actually, most of this can be used for other packages as well).

Create a directory to put your packages in, such as ~/mypackages/
# mkdir mypackages && cd mypackages

Get the source for nautilus
# apt-get source nautilus

Make sure we have all the stuff needed for building it
# apt-get build-dep nautilus

cd in to the nautilus-XXX path, were XXX is current version
# cd nautilus-XXX

copy the patch from upstream report into the debian/patches
# cp /path/to/patch/nautilus_trash_columns_arrange.patch debian/patches/10_nautilus_trash_columns_arrange.patch

I gave it the prefix 10 - but I cannot say what number (actually the order when the patch will be applied) will work. Trial and error here.

Some packages has a series file which define the order the patches will be applied. Nautilus is such a package. Edit the file and put the name of the file in the list at some place.
# nano debian/patches/series

Now lets build the package (this will take some time, go grab some coffee and hold tight to your lucky amulet)

# dpkg-buildpackage -rfakeroot -b -tc

If the build succeeded we will have a bunch of .deb files in the ~/mypackages folder so let's go there and install them

# cd ..
# sudo dpkg -i *.deb

Log out and log in and you'll have the new nautilus.

IF something for some reason didn't work well with the new version it's easy to remove it and install the Ubuntu version.

# sudo apt-get update && sudo apt-get upgrade

This will replace your version with the real one, so either be careful about your next upgrade if you'd like to keep your modified one.

(This comment, or article, will most likely contain errors so keep your head sharp ;-))