Xubuntu Remove Open Terminal Here Option from Desktop Right Click


I am using Xubuntu 14.04 and added some Netbooks to our domain.  The issue that I am running into is disabling right click from the domain users so that they cannot access the terminal.  I locked down the panel and desktop settings but I cannot find a way to take out the right click option

If the Netbook is not part of the domain then you can add disablerightclick.desktop to the users autostart folder to disable it.  this is a manual process that would have to be done to all users after they have logged in (as far as I know).

Is there a way to remove the terminal from the desktop right click options globally so that the users do have access to it
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
Did you try adding:

xmodmap -e "pointer = 1 2 99"

Open in new window

into the user's .bashrc?
This removes the right-click option in total, not just the terminal option
You'd need to make sure they can't adjust this file naturally, but it's a start ...

Another option is to adjust the menu manually via a text editor, the file you'll need is normally to be found under  "/etc/xdg/xubuntu/menus/", the file is called 'xfce-applications.menu', you can adjust it via a text editor with sudo/root privileges.

In this file you can remove/add what you want, let me know if you need more info on that.
thomasm1948Author Commented:
I did but that only works of the end-user right clicks the desktop and then clicks on the terminal option
Zephyr ICTCloud ArchitectCommented:
What only works if the end-user right-clicks the desktop? The bashrc way or??
Did you try removing it from the menu like I mentioned?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

thomasm1948Author Commented:
is there a way to add an if statement in the to the .desktop files.

 For example if we create a custom desktop file like disablerightclick.desktop and put in the /etc/xdg/autostart folder

[Desktop Entry]
Name=Disable Right Click
Comment=Disable Right Click
Exec=xmodmap -e "pointer = 1 2 99"

The above should work but it will be a global affect and it will affect the sudo group

Is there a way for it to not affect the sudo user?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thomasm1948Author Commented:
I just tested the above and I was correct it will disable right click for everyone.  Is there a way to do it everyone beside the sudo group?
Zephyr ICTCloud ArchitectCommented:
Hmmm ... Not that I know of ... The sudo user is not a real separate user.
What about using a script what will ask a root/sudo password to open the terminal or something? Sorta like "open with root"

Ok, maybe via group ... I'll have to check that... Maybe
thomasm1948Author Commented:
I used this solution and everything is working just fine
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.