Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 18 Nov 2017, 08:35
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Disable Mouse Right Click [Resolved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
LenseOnLife

Joined: 12 Oct 2017
Posts: 18
Location: Ireland

PostPosted: Sat 21 Oct 2017, 16:36    Post subject:  Disable Mouse Right Click [Resolved]
Subject description: I Kid You Not!!!!
 

Hi,

Me again Smile

BACKGROUND: Fujitsu Siemens 2005 PC, 3GHz, 1GB RAM, 40GB HDD running Tahrpup 6.0.6, Linux 3.14.7. Single DVD for DVD / CD operation. Set to auto launch when media is detected, setting up system for people with limited intellectual abilities - needs to be almost impossible to break!!!

I been thinking - is it possible to disable the mouse right click as I'd rather if teh user was not able to delete desk icons etc.. Once the system is installed, there shouldn't be any need to use the right click.

Any ideas?

Oliver

Last edited by LenseOnLife on Tue 24 Oct 2017, 03:57; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
mostly_lurking

Joined: 25 Jun 2014
Posts: 223

PostPosted: Sat 21 Oct 2017, 18:47    Post subject:  

A quick search suggests that a simple way to disable the right-click is to change the mouse button mapping with xmodmap:
Code:
xmodmap -e "pointer = 1 2 99"

This apparently changes the mapping of the mouse button #3 (right click) to an invalid value. (Using xmodmap -e "pointer = 1 2 3" changes it back to normal.)

This will only last until the end of the session, though. To make it permanent, you could perhaps create a script with the following content in /root/Startup, where it will be run every time the X server starts up:
Code:
#!/bin/sh
xmodmap -e "pointer = 1 2 99"

To create that script, open /root/Startup in a ROX file manager window, right-click (you haven't disabled it yet, have you?) on some empty space, and choose New > Script from the menu, then right-click the resulting file and open it as text. Alternatively, open your text editor, put the code in, and save it in /root/Startup. Then make the script executable by typing chmod 755 /root/Startup/your-script into a terminal, or by right-clicking the file in ROX and going to the Permissions dialog.

LenseOnLife wrote:
Once the system is installed, there shouldn't be any need to use the right click.

Let's hope so (you are sure that none of your programs have any necessary right-click functionality?) - or else, if you are also going to block any access to the file manager and terminal, you'd have to exit the X server (press CONTROL + ALT + BACKSPACE, unless you disable that, too) and remove that script from Startup via the command prompt...
Back to top
View user's profile Send private message 
LenseOnLife

Joined: 12 Oct 2017
Posts: 18
Location: Ireland

PostPosted: Sun 22 Oct 2017, 01:18    Post subject:  

Hi mostly_lurking,

Thanks for that update on the mouse. You're right, it is a dangerous thing to do but I won't be doing it till I have an ISO that I can distribute. The user will never be storing data on the PC and we will be doing a full install when new games become available. It is cleaner all round.

Now that I know that there is possibility for restricting / disabling the right click - I can move on to other issues and get all those ducks in order first.

Thanks for the info

Oliver
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0565s ][ Queries: 14 (0.0051s) ][ GZIP on ]