WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Remove SystemTools and Applications from click menu  (Read 3168 times)

Offline hoogenboom

  • Newbie
  • *
  • Posts: 13
Remove SystemTools and Applications from click menu
« on: April 25, 2016, 10:14:43 AM »
Hello, I'm trying to remove SystemTools and Applications from the click menu. I've followed this post below exactly as far as I can tell. The only thing that happens when I reboot is the /home/tc/.mymenu/.wmx file disappears and the /home/tc/.wmx remains or is rebuilt. It's almost like my /opt/bootlocal.sh isn't running. I've tried putting sudo in front of those commands as well. I understand that JWM can do this with ease but I'm working with a 32MB CF card and cant spare any more space.

Thank you!

The menu is in /home/tc/.wmx

One way to change the menu is:

Copy .wmx to another directory.

For example, lets use /home/tc/.mymenu.

So you have a copy of the menu in /home/tc/.mymenu/.wmx

In /home/tc/.mymenu/.wmx delete System Tools, or make any other changes.

Add the following to /opt/bootlocal.sh

Quote
mv /home/tc/.wmx /home/tc/.wmx_old
cp -r /home/tc/.mymenu/.wmx /home/tc/.wmx

When you start the computer, you should have the menu as you set it up in /home/tc/.mymenu/.wmx.

Keep in mind, if you install additional apps, or make changes to On Boot or On Demand, you need to set up the menu again.


To remove it properly, you can do a remaster.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Remove SystemTools and Applications from click menu
« Reply #1 on: April 25, 2016, 10:29:48 AM »
Either you forgot to do a backup before rebooting or you or you don't have a persistent tce directory.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Download a copy and keep it handy: Core book ;)

Offline hoogenboom

  • Newbie
  • *
  • Posts: 13
Re: Remove SystemTools and Applications from click menu
« Reply #3 on: April 25, 2016, 10:40:44 AM »
I verified that the "Backup" is selected when I reboot. Also, the /home/tc/.mymenu directory persists. I tried just having

#!bin/sh
mv /home/tc/.wmx /home/tc/.wmx_old

in the /opt/bootlocal.sh with sudo and without sudo. Not even that runs. Checking out that link from Misalf now.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Remove SystemTools and Applications from click menu
« Reply #4 on: April 25, 2016, 10:55:16 AM »
BTW,  sudo  is not needed inside  bootsync.sh  and  bootlocal.sh  as those run with root privileges.
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Remove SystemTools and Applications from click menu
« Reply #5 on: April 25, 2016, 11:01:57 AM »
Just thinking, doing stuff with user files from within  /opt/boot*.sh  may lead to permission issues?
In that case this might help:
Code: [Select]
TCUSER="$(cat /etc/sysconfig/tcuser)"
su "$TCUSER" -c "cp -r /home/$TCUSER/.mymenu/.wmx /home/$TCUSER/.wmx"
Download a copy and keep it handy: Core book ;)

Offline hoogenboom

  • Newbie
  • *
  • Posts: 13
Re: Remove SystemTools and Applications from click menu
« Reply #6 on: April 25, 2016, 11:31:18 AM »
Well, I'm almost there. I took a different approach. First I backed up the old menu by running

Code: [Select]
cp -r /home/tc/.wmx /home/tc/.wmx_old
Then, in .X.d/ ran

Code: [Select]
echo "rm -rf /home/tc/.wmx/SystemTools /home/tc/.wmx/Applications/ &" > lockdown
Brutal but it worked! Now to remove that pesky "New xterm" from the click menu  ::)
« Last Edit: April 25, 2016, 11:58:48 AM by hoogenboom »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Remove SystemTools and Applications from click menu
« Reply #7 on: April 25, 2016, 11:34:29 AM »
I don't get why you're using  sudo ?
Download a copy and keep it handy: Core book ;)

Offline hoogenboom

  • Newbie
  • *
  • Posts: 13
Re: Remove SystemTools and Applications from click menu
« Reply #8 on: April 25, 2016, 11:52:58 AM »
Bad habit I suppose  :o Removed it!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Remove SystemTools and Applications from click menu
« Reply #9 on: April 25, 2016, 01:44:16 PM »
"#!bin/sh"

If that was a straight copy-paste, the header was wrong.
The only barriers that can stop you are the ones you create yourself.

Offline hoogenboom

  • Newbie
  • *
  • Posts: 13
Re: Remove SystemTools and Applications from click menu
« Reply #10 on: April 25, 2016, 02:17:16 PM »
Nah it wasn't copy/paste. I'm using VNC because openssh was too big :) I'm not getting a lot of hits on my last problem though. I'd like to remove, break, or password protect the "New xterm" on the menu. Without uninstalling aterm as its my only means of administration.



I think maro is touching on it here

Hmm, I'm not quite sure if the following is what the OP had in mind for FLWM, but rm -rf ~/.wmx is a "most brutal" way to "get rid" of pretty much all FLWM menu entries.

Now to re-establish the "SystemTools" one could use flwm_topside_initmenu and to get the menu entries of all installed extensions back I'd try my luck with: ls /usr/local/tce.installed | xargs -n 1 flwm_topside_makemenu
« Last Edit: April 25, 2016, 02:47:04 PM by hoogenboom »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Remove SystemTools and Applications from click menu
« Reply #11 on: April 26, 2016, 04:28:38 AM »
The new xterm entry is hardcoded in the source IIRC, so to change it you'd need to edit and rebuild flwm_topside.
The only barriers that can stop you are the ones you create yourself.

Offline hoogenboom

  • Newbie
  • *
  • Posts: 13
Re: Remove SystemTools and Applications from click menu
« Reply #12 on: April 26, 2016, 07:15:22 AM »
I can accept that. Thanks everyone for your help!