[SOLVED] Lisa - TortoiseHg Nautilus Integration - Cinnamon

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Level 1
Level 1
Posts: 1
Joined: Wed Jun 23, 2010 7:58 am

[SOLVED] Lisa - TortoiseHg Nautilus Integration - Cinnamon

Postby theraot » Thu May 17, 2012 12:03 pm

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


[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


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.


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

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.
Last edited by theraot on Thu May 17, 2012 12:31 pm, edited 4 times in total.

User avatar
Level 19
Level 19
Posts: 9553
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: HowTo - TortoiseHg Nautilus Integration - Mint 12 Cinnam

Postby Oscar799 » Thu May 17, 2012 12:11 pm

Moved here by moderator

Level 1
Level 1
Posts: 1
Joined: Fri Sep 21, 2012 5:23 am

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

Postby glframebuffer » Fri Sep 21, 2012 5:36 am

Thanks a Million $$ :)

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


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest