pid = (vfork ());
if (pid == 0)
{
- execl (bp, bp, "--edit", ((char *) 0));
+ execl (bp, bp, "--macosx-application", "--edit", ((char *) 0));
_exit (1);
}
return ((pid > 0) ? 0 : 3);
bool option_batch_mode;
bool option_show_version;
bool option_show_help;
+#ifdef __APPLE__
+ bool option_macosx_application;
+#endif
/* String options */
const char ** option_library_path = 0;
--nocore\n\
Specifies that Scheme should not generate a core dump under any\n\
circumstances.\n\
-\n\
+"
+#ifdef __APPLE__
+"\n\
+--macosx-application\n\
+ Specifies that Scheme is running as a Mac OS X application.\n\
+ This option is automatically supplied when the application is\n\
+ launched from an icon, and should not be given under other\n\
+ circumstances.\n\
+"
+#endif /* __APPLE__ */
+"\n\
Please report bugs to %s.\n\
\n\
Additional options may be supported by the band (and described below).\n\
option_argument ("help", false, (&option_show_help));
option_argument ("interactive", false, (&option_force_interactive));
option_argument ("library", true, (&option_raw_library));
+#ifdef __APPLE__
+ option_argument ("macosx-application", false, (&option_macosx_application));
+#endif
option_argument ("nocore", false, (&option_disable_core_dump));
option_argument ("option-summary", false, (&option_summary));
option_argument ("quiet", false, (&option_batch_mode));
extern bool option_batch_mode;
extern bool option_show_help;
extern bool option_show_version;
+#ifdef __APPLE__
+ extern bool option_macosx_application;
+#endif
/* String options */
extern const char ** option_library_path;