In my Redhat 6 Machine, I have 5 users: "user1", "user2", "user3", "user4", "user5". When I am logged in as "user1" or "user2", I want to disable right click on the Desktop but when I'm logged in as "user3" or "user4", then I want to be able to right click on the Desktop normally.
I tried xmodmap -e "pointer = 1 2 99 3 4 5 6 7 8 9"
, but it's blocking system-wide right clicking while I just want it blocked on the Desktop.
user1
anduser2
from performing certain actions, either for security or "simplicity"? (Is this, for example, for some kind of a kiosk system?) Or is the context menu perhaps popping up when you don't want it to (an annoyance)? (This happens with my laptop touchpad, so I disable the touchpad.) I ask because the solution may well depend on the underlying reason you want to do this, and I'd hate to provide an answer that doesn't solve your actual problem.