View Single Post
Old 02-25-2013, 08:48 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by peepo View Post
How to set up KUAL GUI launcher extension to launch kterm and run in same kterm?

#!/bin/bash
bin/kterm -e myapp.sh
exit

whilst their are a host of ways of getting kterm to open,
none as yet take -e option and run another script in the same terminal.
afaict using ps ax the myapp.sh runs, but not in the terminal....

How to do this so it works?
Currently, KUAL buttons are non-interactive.

So for now, you will need a button per external command.
Although you do not need the external shell script as shown above.
"action" : "bin/kterm -e myapp.sh"
will do the job, the string value of the action tag is passed to the system default command processor (in this case Ash).

OR
If the above does not work, try:
"action" : "bin/kterm", "parms" : "-e myapp.sh"
knc1 is offline   Reply With Quote