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.253 by root, Tue Jul 15 16:41:22 2008 UTC

459 459
460 /* no point having a scrollbar without having any scrollback! */ 460 /* no point having a scrollbar without having any scrollback! */
461 if (!saveLines) 461 if (!saveLines)
462 set_option (Opt_scrollBar, 0); 462 set_option (Opt_scrollBar, 0);
463 463
464#ifdef PRINTPIPE
465 if (!rs[Rs_print_pipe])
466 rs[Rs_print_pipe] = PRINTPIPE;
467#endif
468
469 if (!rs[Rs_cutchars]) 464 if (!rs[Rs_cutchars])
470 rs[Rs_cutchars] = CUTCHARS; 465 rs[Rs_cutchars] = CUTCHARS;
471 466
472#ifndef NO_BACKSPACE_KEY 467#ifndef NO_BACKSPACE_KEY
473 if (!rs[Rs_backspace_key]) 468 if (!rs[Rs_backspace_key])
539{ 534{
540 this->envv = envv; 535 this->envv = envv;
541 536
542 SET_R (this); 537 SET_R (this);
543 set_locale (""); 538 set_locale ("");
544 set_environ (envv); // few things in X do not call setlocale :( 539 set_environ (envv); // a few things in X do not call setlocale :(
545 540
546 init_vars (); 541 init_vars ();
547 542
548 init_secondary (); 543 init_secondary ();
549 544
550 const char **cmd_argv = init_resources (argc, argv); 545 const char **cmd_argv = init_resources (argc, argv);
551 546
552#ifdef KEYSYM_RESOURCE 547#ifdef KEYSYM_RESOURCE
553 keyboard->register_done (); 548 keyboard->register_done ();
554#endif 549#endif
550
551 if (const char *path = rs[Rs_chdir])
552 if (*path) // ignored if empty
553 {
554 if (*path != '/')
555 rxvt_fatal ("specified shell working directory must start with a slash, aborting.\n");
556
557 if (chdir (path))
558 rxvt_fatal ("unable to change into specified shell working directory, aborting.\n");
559 }
555 560
556 if (option (Opt_scrollBar)) 561 if (option (Opt_scrollBar))
557 scrollBar.state = STATE_IDLE; /* set existence for size calculations */ 562 scrollBar.state = STATE_IDLE; /* set existence for size calculations */
558 563
559 pty = ptytty::create (); 564 pty = ptytty::create ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines