WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC menu generator  (Read 1932 times)

Offline EdmCru

  • Newbie
  • *
  • Posts: 7
TC menu generator
« on: April 02, 2021, 05:16:25 AM »
Is it possible to get a look at the menu generator code that creates the wbar and jwm menus?

I think it might help my coding in another situation.

Thanks

EdmCru

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: TC menu generator
« Reply #1 on: April 02, 2021, 05:19:21 AM »
Aside from the extensions themselves, there might be something here: https://github.com/tinycorelinux/fltk_projects

Offline EdmCru

  • Newbie
  • *
  • Posts: 7
Re: TC menu generator
« Reply #2 on: April 02, 2021, 05:31:01 AM »
Thanks for the quick reply.
However that page the newest code seems to be about 6 years old.
I'm not sure it'll be helpful but thanks anyway

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: TC menu generator
« Reply #3 on: April 02, 2021, 06:10:42 AM »
Hi EdmCru
For the scripts that populate the wbar:
Code: [Select]
ls -l /usr/local/bin/wbar*
For the scripts that populate the the desktop menu:
Code: [Select]
ls -l /usr/local/bin/jwm_*
Also of possible interest:
Code: [Select]
ls -l /usr/local/bin/desktop.sh
The (text) file that contains the current wbar contents is:
Code: [Select]
ls -l /usr/local/tce.icons

Offline EdmCru

  • Newbie
  • *
  • Posts: 7
Re: TC menu generator
« Reply #4 on: April 02, 2021, 06:59:34 AM »
Perfect!

I do not seem to have desktop.sh in that location though?

Thanks much

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: TC menu generator
« Reply #5 on: April 02, 2021, 07:01:28 AM »
Hi EdmCru
Do you have  Xlibs.tcz  loaded?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: TC menu generator
« Reply #6 on: April 02, 2021, 07:05:30 AM »
Hi EdmCru
It seems the pi version place things in  /usr/bin/  instead of  /usr/local/bin/:
http://tinycorelinux.net/12.x/armv6/tcz/Xlibs.tcz.list

Try:
Code: [Select]
ls -l /usr/bin/desktop.sh

Offline EdmCru

  • Newbie
  • *
  • Posts: 7
Re: TC menu generator
« Reply #7 on: April 02, 2021, 07:17:04 AM »
Thanks to all for the help.

Reviewing code now.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: TC menu generator
« Reply #8 on: April 02, 2021, 07:57:42 AM »
Hi EdmCru
Last year I had to fix a bug in the  $DESKTOP_menu_common  and  wbar_update.sh  scripts. In order to do that I first
needed to format and comment the scripts (and learn awk) so could follow what was going on. They can be seen
in this post if you are interested:
http://forum.tinycorelinux.net/index.php/topic,22823.msg153705.html#msg153705