Hi again

It seems I killed the mailing list ...

Here's a little patch I just wrote and that apply on last svn gtdi.py.
During the loading of the program, it check for the presence of a terminal 
app : first gnome-terminal, then konsole and the xterm (I think everybody 
have at least xterm). When clicking the "Tux Droid Shell Button", it use the 
detected terminal instead of gnome-terminal, so that it works on non-gnome 
systems.

I hope the code isn't too dirty, so that it can be useful

Georges
58a59,63
> 
> for term in ["gnome-terminal","konsole","xterm"]:
> 	if not os.popen('type %s'%term).close():
> 		terminal_app=term
> 		break
377c382
<         tux.sys.shell_free('gnome-terminal -e "tuxsh"')
---
>         tux.sys.shell_free(terminal_app + ' -e "tuxsh"')
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
tux-droid-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-user

Reply via email to