962 |
|
|
963 |
#ifdef MAC_OSX |
#ifdef MAC_OSX |
964 |
/* Skip process serial number passed in the form -psn_x_y as |
/* Skip process serial number passed in the form -psn_x_y as |
965 |
command-line argument. */ |
command-line argument. The WindowServer adds this option when |
966 |
|
Emacs is invoked from the Finder or by the `open' command. In |
967 |
|
these cases, the working directory becomes `/', so we change it |
968 |
|
to the user's home directory. */ |
969 |
if (argc > skip_args + 1 && strncmp (argv[skip_args+1], "-psn_", 5) == 0) |
if (argc > skip_args + 1 && strncmp (argv[skip_args+1], "-psn_", 5) == 0) |
970 |
skip_args++; |
{ |
971 |
|
chdir (getenv ("HOME")); |
972 |
|
skip_args++; |
973 |
|
} |
974 |
#endif /* MAC_OSX */ |
#endif /* MAC_OSX */ |
975 |
|
|
976 |
#ifdef VMS |
#ifdef VMS |