ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.251 by ayin, Tue Feb 19 18:15:26 2008 UTC vs.
Revision 1.252 by root, Sun Jun 15 13:54:15 2008 UTC

539{ 539{
540 this->envv = envv; 540 this->envv = envv;
541 541
542 SET_R (this); 542 SET_R (this);
543 set_locale (""); 543 set_locale ("");
544 set_environ (envv); // few things in X do not call setlocale :( 544 set_environ (envv); // a few things in X do not call setlocale :(
545 545
546 init_vars (); 546 init_vars ();
547 547
548 init_secondary (); 548 init_secondary ();
549 549
550 const char **cmd_argv = init_resources (argc, argv); 550 const char **cmd_argv = init_resources (argc, argv);
551 551
552#ifdef KEYSYM_RESOURCE 552#ifdef KEYSYM_RESOURCE
553 keyboard->register_done (); 553 keyboard->register_done ();
554#endif 554#endif
555
556 if (const char *path = rs[Rs_chdir])
557 if (*path) // ignored if empty
558 {
559 if (*path != '/')
560 rxvt_fatal ("specified shell working directory must start with a slash, aborting.\n");
561
562 if (chdir (path))
563 rxvt_fatal ("unable to change into specified shell working directory, aborting.\n");
564 }
555 565
556 if (option (Opt_scrollBar)) 566 if (option (Opt_scrollBar))
557 scrollBar.state = STATE_IDLE; /* set existence for size calculations */ 567 scrollBar.state = STATE_IDLE; /* set existence for size calculations */
558 568
559 pty = ptytty::create (); 569 pty = ptytty::create ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines