Page 1 of 1

[SOLVED] Lisa - TortoiseHg Nautilus Integration - Cinnamon

Posted: Thu May 17, 2012 12:03 pm
by theraot
The issue was to get the submenu from TortoiseHg to appear on Nautilus on Linux Mint Lisa 64 bits with Cinnamon.

The solution for TortoiseHg Nautilus integration to work on Linux Mint Lisa and Cinnamon, is to place patched nautilus-thg.py file in the following location:

Code: Select all

/usr/share/nautilus-python/extensions/nautilus-thg.py
[You will need root rights to do that, I've saved the file with the following permissions: "-rw-r--r--" (chmod 644) and the owner is root]

Note: download the patched version form here: nautilus-thg.py to http://www.4shared.com/file/ThHc9Lhk/nautilus-thg.html [if by any reason that download is not available, you can request me to send you a copy via mail, or go to https://bitbucket.org/tortoisehg/thg/is ... ork-at-all and get a copy of the patch to apply to the original nautilus-thg.py]

Remember to restart nautilus after you have placed the file, to do that run:

Code: Select all

nautilus -q
You can run that either from terminal, or if you have the Alt-F2 keyboard sortcut enabled, you can do it there too. After that call Nautilus back again and the menu options for TortoiseHg should be available now.

Note: the mentioned patched nautilus-thg.py is a modification from the one found at (that file is missplaced, it is useless to have it there):

Code: Select all

/usr/lib/nautilus/extensions-2.0/python/nautilus-thg.py
This is a fix for Ubuntu Oneiric regarding TortoiseHg and Nautilus integration for Gnome 3.2, Based on information taken from here: https://bitbucket.org/tortoisehg/thg/is ... ork-at-all the mentioned patched nautilus-thg.py file is the original file with the patch posted there applied and ready to go. I've tested this with Cinnamon on Linux Mint Lisa and it seems to be working correctly. Although the icons on the contextual menu doesn't appear. Also note that this doesn't work for MATE.

[I'm using TortoiseHg and Mercurial from the PPA, the branch is stable snapshots (https://launchpad.net/~mercurial-ppa/+a ... -snapshots and https://launchpad.net/~tortoisehg-ppa/+ ... -snapshots). Just in case that makes a difference]

This bug is listed as fixed for TortoiseHg 2.3.2, I have TortoiseHg 2.4 (2.4+45-9eef15d181b8-0ppa1~oneiric1) thanks to the PPA, and I still had to apply this patch because of mysterious reasons beyond my understanding. Anyway, this seems to be an Ubuntu Oneiric Ocelot specific problem, and since Linux Mint Lisa is based on Oneiric it is affected. So, hopefully this wont apply to the new Linux Mint Maya which is based on Ubuntu Precise Pangolin.

The sole purpose of posting this already solved issue is to make it easier for others to find the solution.

Edit:

I've posted nautilus-thg.py to http://www.4shared.com/file/ThHc9Lhk/nautilus-thg.html instead of attaching because this forum happens to be extension picky (not saying that there is anything wrong with that). I've also requested virustotal.com to scan the file, you can see the results here: https://www.virustotal.com/file/01e4f0c ... 337271055/

As virustotal shows the SHA256 of the file is the following:

Code: Select all

01e4f0cd42400e75797bc554268324d7b078b7ca0c52c692f8fdf96a333fb193
you can verify that using the package md5deep, to install md5deep run:

Code: Select all

sudo apt-get install md5deep
[You may be asked for your root's password]

To check the SHA256 of nautilus-thg,py (in this case, or any other file you want), run from the terminal the following (being in the same folder as the target file):

Code: Select all

hashdeep nautilus-thg.py -c SHA256
hasdeep will show the file size, it's SHA256 and it's path (the file size is 13273 bytes).

I provide this information with the following guarantee: it works for me.

Re: HowTo - TortoiseHg Nautilus Integration - Mint 12 Cinnam

Posted: Thu May 17, 2012 12:11 pm
by Oscar799
Moved here by moderator

Re: [SOLVED] Lisa - TortoiseHg Nautilus Integration - Cinnam

Posted: Fri Sep 21, 2012 5:36 am
by glframebuffer
Thanks a Million $$ :)

Perfect instructions, Great work. saved me from going back to MS Win.

Cheers
glFramebuffer