On Wed, Nov 01, 2000 at 10:07:28PM -0400, Casey Henderson wrote: > Hi all, it's me again! > I did something rather silly and now I don't know how to undo it. I > was using Gnome as root to do some adminstrative tasks, and I decided > that I wanted to copy my Gnome settings and customizations to my normal > user account that I use for everyday work. So I copied various files > to the home directory of my regular account. It worked great, with one > minor bug. Whenever I'm in Gnome as a regular user and I click the > terminal window to enter some commands, the window always opens up and > my initial directory is /root. Of course it's no big deal to type "cd" > to get to my home directory, but I was wondering what config file needs > to be changed to set this so that terminal windows will start with the > proper initial directory. Thanks.
Not entirely sure if this'll fix it. But: o exit your X session o Login at console o `cd ~/.gnome` o `cp session session.bak` o `vim session` o `:%s#^\(\d\{1,\},CurrentDirectory=\)\(/root\)$#\1/home/<username>#g` o `:wq` o Login to X and see if it worked. Bullet items in backquotes '`' are to be executed explicitly sans backquotes. Substitute your username for <username>. If it doesn't work, you can restore session.bak (I tested, and it seems to do it). Note: the %s command may not work the same in all vi clones, though it works in vim for sure. -- #! /bin/sh # ppp-address: What's my Internet Address for ppp0 ? /sbin/ifconfig ppp0 2> /dev/null | grep 'inet addr:' | sed \ 's=.*inet addr\:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*=\1='