After install of RabbitVCS I get git, svn and Hg integration in Nautilus. How to remove Hg and Git from context menu?
Ubuntu – show only svn in RabbitVCS context menu
configurationrabbitvcs
configurationrabbitvcs
After install of RabbitVCS I get git, svn and Hg integration in Nautilus. How to remove Hg and Git from context menu?
Best Answer
I've found a hackingish way of doing that. I'm assuming you've installed
rabbitvcs-nautilus
. I've tested it in Ubuntu 16.04.After installing it, if you restart nautilus, you'll find entry for three types of VCS, namely git, mercurial (hg) and SVN. Here is a screenshot of context menu after default installation.
Now, to remove git and mercurial menus, Open
/usr/lib/python2.7/dist-packages/rabbitvcs/util/contextmenu.py
with your favorite text editor. I'm using sublime text in the exampleNow, go to line 1329. Comment-out lines from 1329 to 1372. Which are basically menu item entries for git and mercurial. After commenting out, the lines become
I've printed line numbers here.
Here is two screenshot which shows the context menu before and after of disabling this.
Screenshot: After disabling