Saturday, March 21, 2015

How to use TortoiseHG in Linux Mint MATE (with Caja)

As of Mint 17.1, the repositories still have the TortoiseHg Nautilus plugin. I am running Mate, so I have Caja, not Nautilus.

Here's a quick hack to make it work anyway:

Install the tortoisehg and tortoisehg-nautilus packages.

$ sudo apt-get install tortoisehg tortoisehg-nautlius

Make a copy of the nautilus-thg.py extension.

$ cp /usr/share/nautilus-python/extensions/nautilus-thg.py ~

Replace all occurences of "Nautilus" with "Caja":

$ sed -e 's/Nautilus/Caja/g' < ~/nautilus-thg.py > ~/caja-thg.py 

Stuff the new extension into the caja-python directory:

$ sudo mv ~/caja-thg.py /usr/share/caja-python/extensions

And restart Caja:

$ killall caja

That's it. Now your hacked caja extension will give you icons and context menus.

Inspired by this forum post.

No comments: