Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: gerits on June 15, 2009, 04:37:20 AM

Title: Creating program
Post by: gerits on June 15, 2009, 04:37:20 AM
Hello,

this is probably going to be a stupid question but I'm going to ask it anyway...

In tc you in the upper right corner a 'X' and I've found that in .jwmrc-tray you can edit the bar. When  you press the 'x' a program opens, now my questions is how you can create a program like that?

I want to add my own button to the top bar with my own made control but I don't know what language I've to write it in..
Title: Re: Creating program
Post by: Juanito on June 15, 2009, 04:50:43 AM
I'd guess you could call both a script and a compiled application - maybe the documentation on the jwm web site could be useful?
Title: Re: Creating program
Post by: gerits on June 15, 2009, 06:55:44 AM
I'd guess you could call both a script and a compiled application - maybe the documentation on the jwm web site could be useful?

I know how to execute something from the bar, but I don't know in what language I should make a program like that...
Title: Re: Creating program
Post by: Juanito on June 15, 2009, 07:20:13 AM
I'm not at a tc machine at the moment, but I believe the exit dialogue launched by the jwm tray "X" is a script executable by busybox sh.

You could probably write something in C (like curaga's watcher app in the jwm tray) or bash, perl, python, etc - as long as you have the appropriate extension loaded.
Title: Re: Creating program
Post by: curaga on June 15, 2009, 08:01:46 AM
If you only need a yes/no gui:
Quote
popask "Would you like fries with that?"