disable Right Mouse button

Hello Folks,

i am attempting to disable the menu that appears upon right clicking the mouse on the desktop. searching the web and forums cant find much info at all

any suggestions?

Which desktop?

For KDE, it is easy.

Right click on the desktop :stuck_out_tongue:

click “Default Desktop Settings” (except it might be “Folder Settings” or something else depending on your activity).

click “Mouse Actions”. Then set them to what you want.

It might not be as easy to get them back, if you change your mind, though it can still be done.

oh wow i didnt even notice this settings. thanks so much. and yes KDE

For completeness, here’s the other way to get to that menu (in case you have disabled right click):

Click on the cashew at the top right of the screen. It may have a label, such as “Desktop”. One of the options will get you that same menu for desktop settings.

now that this right click is disabled if you try to right click on blank space you get nothing which is good, but how do i disable the right click on an icon. when i right click on an icon i get a menu showing multiple items such as: Show Original File , Open, Cut, Copy, Rename …blah blah blah
how would i go about disabling this.

thanks for the help

Do you want NO right button at all?? Why???

If you want to totally remove all right clicking I suspect you would need to do that in /etc/X11/xorg.config.d You can configure basic mouse functionality there.

Also an option may be a single button mouse Think Apple.

But removing the right button will lose a lot of functionality. Are you really sure that is what you want.

well basically i have “users” that are going to be using this computer along with 600+ other clones of it and i don’t want them to be able to change anything on it. im basically locking down the desktop so they cant fiddle with it and change stuff…everything is working fine and locked down except this aspect but yes i do still need a right click button function. i just want to disable this menu that appears when right clicking on an icon.

any suggestions?

Right click a folder or file does not change any “settings” it is only functions to do something with the the file/folder.

A more exact description of what you really want to do may suggest better alternatives. Asking one item at a time may take a while LOL

Are the users going to have their own log in or are these to be public machines. There are solutions that deal with that. Also menu items can be modified and removed. But there is a lot more to locking down a machine then right click removal.

Have a look at this:
http://flexible.xapient.net/?p=850

And here’s the official documentation for KDE’s “Kiosk” framework for locking down KDE:
https://techbase.kde.org/KDE_System_Administration/Kiosk/Introduction
https://techbase.kde.org/KDE_System_Administration/Kiosk/Keys

There even was a GUI for this, but its unmaintained since a while now AFAIK (but should still work):
http://en.opensuse.org/Kiosktool
(it’s available from the main repos)

these machines are auto logged in and will be used by a bunch of different user. i figured my explication was clear in that when right clicking on an icon or “widget” it displays a menu of various different actions in which i would not like to see. mainly the reason being is a user can clear just “rename” an icon or “Move to Trash” or open it with a different application not intended.

As for as everything else being locked down. that has been taken care of.

I suggest you look at the kiosk solutions as perr Wofi’s post

Don’t run linux. Run Windows. It is better suited to that kind of control mentality.

If a user messes up the KDE desktop, then:


# rm -rf /home/userid/.kde4

will restore it to original defaults.

Actually you should be able to lock down Linux better then Windows.

You can provide system-wide defaults in /etc/kde4/ (only changeable by root), or you can make the config files in ~/.kde4 be owned by root f.e. to prevent the user deleting them.
And there’s also the “immutable” file attribute e.g., see “man chattr”:

       A file with the `i' attribute cannot be modified: it cannot be  deleted
       or  renamed,  no  link  can  be created to this file and no data can be
       written to the file.  Only the superuser or a  process  possessing  the
       CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

Your example is not really a good argument to use Windows for that. :wink:

there’s really no way of just disabling this in a simple manor?

does anybody know what config file is responsible for this action?

Well, it is not as if this is a “normal” or “simple” way of doing things. As in any OS – Windows included – if you wish to do things way off the beaten path, you need to be prepared to do your part: ie, work at it.:wink: