Let ede-launch use xterm if TERM was inherited from login console.

Dumping usage of FL_SHOW event in ede-panel; everything is now handled in Panel::show().
Call Panel::hide() even if ede-panel was ended/killed with outside signal; with this configuration file will be stored.
Remember panel position (top/bottom).
This commit is contained in:
Sanel Zukan
2009-11-18 12:24:58 +00:00
parent 200fdd8e4c
commit bafdb44a10
4 changed files with 97 additions and 42 deletions

View File

@@ -272,7 +272,9 @@ static void ok_cb(Fl_Widget*, void* w) {
if(in_term->value()) {
char buf[128];
char* term = getenv("TERM");
if(!term)
/* also check if TERM get inherited from login console */
if(!term || strcmp(term, "linux") == 0)
term = "xterm";
snprintf(buf, sizeof(buf), "%s -e %s", term, cmd);