mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user