Xubuntu Remove Open Terminal Here Option from Desktop Right Click

Hi,

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
thomasm1948Asked:
Who is Participating?
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"
exit

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.
0
thomasm1948Author Commented:
I did but that only works of the end-user right clicks the desktop and then clicks on the terminal option
0
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?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy 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]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Disable Right Click
Comment=Disable Right Click
Exec=xmodmap -e "pointer = 1 2 99"
StartupNotify=false
Terminal=false
Hidden=false


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?
0

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?
0
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
0
thomasm1948Author Commented:
I used this solution and everything is working just fine
0
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
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.