Ubuntu – How to disable right click in nautilus


i want to disable right click in nautilus using Ubuntu 12.04. how to do that?

Best Answer

To disable right click for just desktop :

xmodmap -e "pointer = 1 2 99"

To apply for system wide:

xmodmap -e 'pointer = 1 2 0 4 5 6 7 8 9'

If you want to reverse it:

xmodmap -e 'pointer = default'

But, notice that it will restore to defaults upon rebooting.

Now, if you wish to make this option non-volatile do the following:

open dash --> startup Applications --> Add --> fill as in the image below

enter image description here