mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: automatic selection of console program when launching program (if predefined not available)
git-svn-id: svn://ultimatepp.org/upp/trunk@5315 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
847ce4b98d
commit
a0aaed2f3e
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,6 @@ void LocalHost::Launch(const char *_cmdline, bool console)
|
|||
#endif
|
||||
#ifdef PLATFORM_POSIX
|
||||
String script = ConfigFile("console-script-" + AsString(getpid()) + ".tmp");
|
||||
int c = LinuxHostConsole.FindFirstOf(" ");
|
||||
String lc;
|
||||
static const char *term[] = {
|
||||
"/usr/bin/mate-terminal -x",
|
||||
|
|
@ -222,6 +221,7 @@ void LocalHost::Launch(const char *_cmdline, bool console)
|
|||
};
|
||||
int ii = 0;
|
||||
for(;;) { // If (pre)defined terminal emulator is not available, try to find one
|
||||
int c = LinuxHostConsole.FindFirstOf(" ");
|
||||
lc = c < 0 ? LinuxHostConsole : LinuxHostConsole.Left(c);
|
||||
DDUMP(lc);
|
||||
if(ii >= __countof(term) || FileExists(lc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue