[openbeos] Re: Including additional Tracker add-ons

On 2007-12-12 at 10:38:40 [+0100], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
wrote:
> Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> > I don't really see a reason to change the Terminal at all. It's not
> > the
> > problem in this case. The problem is that when started as login
> > shell, bash
> > changes the cwd to the home directory.
> 
> But that's because that's written in our .profile, and not an inherent
> feature of the shell, right? :-)

Yep.

> So I guess all we have to make sure is that the BRoster::Launch()
> switches to the user's home directory and we're done.

... and remove the "cd /boot/home" in the .profile, you mean, I suppose.

I don't think that's a good idea, though, since then we lose the ability to 
start applications in another directory than the home directory using 
BRoster::Launch(). Besides this would particularly not solve the 
Summon/TermHere problem.

Alternatively, we could change .profile this way, but let the applications 
that start other apps (Tracker, Deskbar, LaunchBox) make sure that they 
change their cwd to "/boot/home" by default.

CU, Ingo

Other related posts: