Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: EdmCru on April 02, 2021, 08:16:25 AM

Title: TC menu generator
Post by: EdmCru on April 02, 2021, 08: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
Title: Re: TC menu generator
Post by: Juanito on April 02, 2021, 08:19:21 AM
Aside from the extensions themselves, there might be something here: https://github.com/tinycorelinux/fltk_projects
Title: Re: TC menu generator
Post by: EdmCru on April 02, 2021, 08: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
Title: Re: TC menu generator
Post by: Rich on April 02, 2021, 09: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
Title: Re: TC menu generator
Post by: EdmCru on April 02, 2021, 09:59:34 AM
Perfect!

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

Thanks much
Title: Re: TC menu generator
Post by: Rich on April 02, 2021, 10:01:28 AM
Hi EdmCru
Do you have  Xlibs.tcz  loaded?
Title: Re: TC menu generator
Post by: Rich on April 02, 2021, 10: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
Title: Re: TC menu generator
Post by: EdmCru on April 02, 2021, 10:17:04 AM
Thanks to all for the help.

Reviewing code now.
Title: Re: TC menu generator
Post by: Rich on April 02, 2021, 10: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