myDSL Extensions (deprecated) :: creating menus for text based prgrams
I'm trying to make a dsl file for the FreeCiv program. So far it's been going well, since cbagger01's excellent deb2dsl script has done all the work. It works that way fine, but you need to start the civserver and the civclient-gtk from bash shells. I made a menu item for each of them, but civclient opens and displays it's output on the screen that you see when you open DSL and shut down.
Can anyone tell me how create a menu item in a DSL file that runs a non-X program so that it opens it's own window to display its output and allow input?
Sure, use rxvt. There are alot of examples inside your .fluxbox/menu
To have a look see do this:
grep rxvt .fluxbox/menu
You will see many examples
So try something like this:
[exec] (FreeCIV) {rxvt -rv -T "FreeCIV Server" -e sudo /path_to_your/civserver}
Thanks! That was just what I needed. It was very helpful to see multiple examples of what's required to make this happen.
original here.