Notes for patching Thunar on Ubuntu Install build and packaging tools $ sudo apt-get install packaging-dev ubuntu-keyring devscripts equivs Make build directory $ mkdir ~/thunar-build $ cd ~/thunar-build Download the thunar .dsc file and extract source and config tarballs $ dget -x http://archive.ubuntu.com/ubuntu/pool/universe/t/thunar/thunar_1.6.10-2ubuntu1.dsc NOTE: dget will download the original source tarball and debian config from http://archive.ubuntu.com/ubuntu/pool/universe/t/thunar/thunar_1.6.10.orig.tar.bz2 http://archive.ubuntu.com/ubuntu/pool/universe/t/thunar/thunar_1.6.10-2ubuntu1.debian.tar.xz and extract the tarballs into ./Thunar-1.6.10. If dget fails to download or extract the files, then download the tarballs, extract the file thunar_1.6.10.orig.tar.bz2 into ~/thunar-build, and extract thunar_1.6.10-2ubuntu1.debian.tar.xz into ./Thunar-1.6.10. Install build dependencies as found in debian/control $ cd Thunar-1.6.10 $ sudo mk-build-deps -i -r Set an inferior version label and update changelog $ dch --local ~patch "Fix file rename and move crashes" Download patch file into debian/patches directory $ wget -O debian/patches/rename.patch http://bug-attachment.xfce.org/attachment.cgi?id=6779 Validate the contents of the rename.patch file. $ less debian/patches/rename.patch Modify the debian/patches/series file $ vi debian/patches/series Delete conflicting patch from debian/patches/series file 02_Fix-crashes-when-reloading-target-file-after-move.patch Insert new patch into debian/patches/series file rename.patch Validate the contents of the series file. $ less debian/patches/series Build the packages without GPG signing $ dpkg-buildpackage -us -uc Install the new packages $ sudo dpkg -i ../thunar-data_1.6.10-2ubuntu1~patch1_all.deb $ sudo dpkg -i ../libthunarx-2-0_1.6.10-2ubuntu1~patch1_amd64.deb $ sudo dpkg -i ../thunar_1.6.10-2ubuntu1~patch1_amd64.deb NOTE: These packages will be replaced by the current version in the repo on next apt-get upgrade due to setting an inferior version label ~patch. Remove the thunar-build-deps package $ sudo apt-get remove thunar-build-deps Delete the build directory $ cd $ rm -rf ~/thunar-build Reboot and enjoy!