r431 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Jan 17 05:11:31 EST 2008
Author: icculus
Date: 2008-01-17 05:11:29 -0500 (Thu, 17 Jan 2008)
New Revision: 431
Modified:
trunk/platform_unix.c
Log:
Fixed terminal spawning on Unix to work no matter what cwd the new terminal
shell starts in.
Modified: trunk/platform_unix.c
===================================================================
--- trunk/platform_unix.c 2008-01-17 10:09:43 UTC (rev 430)
+++ trunk/platform_unix.c 2008-01-17 10:11:29 UTC (rev 431)
@@ -1053,6 +1053,7 @@
"dtterm", "eterm", "Eterm", "aterm"
};
+ char *binpath = MojoPlatform_appBinaryPath();
const char *tryfirst = NULL;
const int max_added_args = 5;
const unsigned int argc = GArgc + max_added_args;
@@ -1086,7 +1087,7 @@
argv[argi++] = is_gnome_term ? "--title" : "-title";
argv[argi++] = "MojoSetup";
argv[argi++] = is_gnome_term ? "-x" : "-e";
- argv[argi++] = GArgv[0];
+ argv[argi++] = binpath;
argv[argi++] = "-notermspawn=1";
assert(argi-1 <= max_added_args);
@@ -1103,6 +1104,7 @@
// Still here? We failed. Mankind is wiped out in the Robot Wars.
free(argv);
+ free(binpath);
#endif
} // MojoPlatform_spawnTerminal
More information about the mojosetup-commits
mailing list