You are not logged in.

#1 2012-09-30 21:52:40

alexanderthegre
Member
Registered: 2012-07-29
Posts: 66

[SOLVED] Bash initial directory problem

Over the last couple of days, whenever I've opened any X virtual terminal (it doesn't do it when I ctrtl-alt-fX), it opened in a directory within my home directory, (namely the one I use for various programming projects), instead of the home directory. I thought that maybe if I removed that directory it might solve the problem, so I did, but apparently it didn't fix it, because now it outputs this:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

It outputs a subtly different message (chdir instead of shell-init) when I cd into a different directlry. I looked through my .bashrc, .bash_profile and .Xresources and none of them had anything relating to directories.
Does anyone know how I could fix this?

Last edited by alexanderthegre (2012-09-30 22:36:42)

Offline

#2 2012-09-30 22:13:06

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] Bash initial directory problem

Did you launch X in that directory?
sudo ls -dl /proc/$(pgrep Xorg)/cwd

Or maybe the program you use to launch the terminal (WM, xbindkeys, etc)?

Offline

#3 2012-09-30 22:35:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Bash initial directory problem

What terminal emulator are you using?

Offline

#4 2012-09-30 22:36:20

alexanderthegre
Member
Registered: 2012-07-29
Posts: 66

Re: [SOLVED] Bash initial directory problem

Oops, yeah, I probably did start x from that directory... I rebooted and now it works. Thanks!

Offline

Board footer

Powered by FluxBB