WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Disable menu context mouse (Right Click)  (Read 2567 times)

Offline looper11

  • Newbie
  • *
  • Posts: 5
Disable menu context mouse (Right Click)
« on: November 09, 2020, 07:01:14 PM »
i use tinycore plus (11) with flwm_topside for my end user and i try to lock down that with an gtk application, but i don't have and idea how can i disable Right click i read many post on this forum , i change Xprogs (remove application pixmap icons and mouse tools ) and flwm_topside (remove all script create wmx) and at last i can remove some option but still working  :-X user can right click (or left click ) and open terminal , etc .
i change mouse option in xsession for xvesa but doesn't work.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Disable menu context mouse (Right Click)
« Reply #1 on: November 09, 2020, 07:59:41 PM »
Hi looper11
Welcome to the forum.

There are scripts that create those menus. Look at  /usr/local/bin/flwm_topside*.

I haven't tried it, but this might work:
Code: [Select]
sudo rm -rf /usr/local/share/applications/*.desktop
sudo flwm_topside_initmenu

Offline looper11

  • Newbie
  • *
  • Posts: 5
Re: Disable menu context mouse (Right Click)
« Reply #2 on: November 09, 2020, 08:37:54 PM »
Tanks my friend I did it , yeh it's work but not all , New Desktop and exit  still present .

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Disable menu context mouse (Right Click)
« Reply #3 on: November 09, 2020, 09:05:15 PM »
Hi looper11
... yeh it's work but not all , New Desktop ...
New Desktop might be internal to the  flwm_topside  window manager.

Quote
...  and exit  still present .
If you cleaned out the  /usr/local/share/applications/  subdirectory prior to  flwm_topside_initmenu  it should be gone.

Offline looper11

  • Newbie
  • *
  • Posts: 5
Re: Disable menu context mouse (Right Click)
« Reply #4 on: November 10, 2020, 02:36:55 AM »
that means i can't disable Right Click (Menu Context) in flwm topside

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Disable menu context mouse (Right Click)
« Reply #5 on: November 10, 2020, 02:51:15 AM »
Hi, guys!

May be I am wrong, but seems that the method described by Rich earlier in the http://forum.tinycorelinux.net/index.php/topic,18785.0.html topic can help.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Disable menu context mouse (Right Click)
« Reply #6 on: November 10, 2020, 10:53:47 AM »
Hi looper11
You could try customizing  flwm_topside.  The source can be found here:
https://github.com/tinycorelinux/flwm

I think changing these 3 lines from 1 to 0 in  config.h  will do what you want:
Code: [Select]
// set this to zero to remove the multiple-desktop code.  This will
// make flwm about 20K smaller
#define DESKTOPS 1

// Read links from ~/.wmx to make menu items to run programs:
#define WMX_MENU_ITEMS 1

// Menu item to run a new xterm (if no wmx items found):
#define XTERM_MENU_ITEM 1

If you want to try it:
Code: [Select]
tce-load -wil compiletc git sstrip fltk-1.3-dev
git clone https://github.com/tinycorelinux/flwm.git
cd flwm

# Make your changes to  config.h.

./compileit

If all went well, you should find a  flwm_topside  executable in the current directory.
If you receive any errors, post them here and we'll try to resolve them.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Disable menu context mouse (Right Click)
« Reply #7 on: November 10, 2020, 10:58:15 AM »
Hi jazzbiker
Yes, disabling console access should be part of locking down a system.

Offline looper11

  • Newbie
  • *
  • Posts: 5
Re: Disable menu context mouse (Right Click)
« Reply #8 on: November 10, 2020, 01:41:06 PM »
Hi Rich
Let me check , ...
Tank you for you replaying