X and Fluxbox :: disable right click



I am configuring a kiosk and so far DSL has proven to be a perfect choice for this.  Firefox is completely customizable, and fluxbox is light stable and customizable.

Something I do need to do is prevent people from right clicking (in X).  I could lock this off in just firefox, but I also want to disable right clicking on titlebars or to get the fluxbox menu.  Does anyone have any suggestions?  I have already tried xmodmap to only recognize the first button; but that doesn't work.

I wonder if it could be as easy as having an empty menu file, perhaps you could try it and tell us.
Instead of disabling right-clicking, why don't you just start XWindows up with out using a Window manager, like Fluxbox.  You can still launch a web browser and specify the window location and size, and people will have a more difficult time messing with your system.
For the empty menu file, that would work (i assume) for the main menu (right-clicking on the desktop).... But I was unable to find the menu file for applications (titlebar specifically).  By right-clicking the titlebar you get a menu that includes iconify,close,kill,etc...; is this menu application specific or general for the window manager?

I did try a setup where I launched mozilla from .xinitrc.  Worked well for the most part; disable the menus the titlebar, etc.  But it had some limitations and problems: I need to allow for a select few popups, ifI dont have a menu (since I'm customizing mozilla to not) and no titlebar... the popups couldn't be closed.  I have no control over the actual code on these pages, otherwise I'd just have a "close" button on the popup.  Another issue is that if mozilla dies; I'd like the system to either restart x and thus mozilla; or currently allow the user to click on a sole desktop icon that launches mozilla.

I would go the route of no wm; if I could handle those 2 problems.  Any suggestions?

The Desktop icon to restart Mozilla should work correctly if you launch xtdesktop along with Mozilla. Just make sure that there are no other icons besides Mozilla in your xtdesktop user folder.

As for the lack of a Window Manager problems, I don't know the answer but I am sure that you are not the first person who needed a similar embedded/kiosk secure Window Manager.

Try searching google for Linux Window Manager kiosk or similar keywords. I bet  that there is an answer out there somewhere.

Another option would be to use a broswer mode where popups are displayed as "tabbed" windows within the same Browser window instead of havingt them launch as new windows. Opera supports this mode and my guess is that other web browsers (maybe even Mozilla) support it as well.

Good Luck.

Next Page...
original here.