Re: strange session management stuff
- From: James Henstridge <james daa com au>
- To: Vandoorselaere Yoann <yoann coldserver com>
- cc: gnome-list gnome org
- Subject: Re: strange session management stuff
- Date: Tue, 6 Jul 1999 08:48:28 +0800 (WST)
The shell runs as a child process of the gnome-terminal. When you change
the directory in the shell, there is no portable way that the
gnome-terminal process can detect this without the help of the shell
itself.
There are non portable ways to deduce the current working directory of a
process (for instance, under linux, see the /proc/num/cwd symlink). That
is why I said it may be possible to do with libgtop.
James.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Mon, 5 Jul 1999, Vandoorselaere Yoann wrote:
> James Henstridge wrote:
> >
> > Saving the scrollback buffer of gnome-terminal is easy. Getting
> > gnome-terminal to save the current working directory of a shell is more
> > difficult, but could be done portably using libgtop (I think -- does it
> > support finding the CWD?). It would take a lot more work to get SM
> > support in all console applications though.
> >
> > It would be nice to support the first two though.
>
>
> huh, doesn't getenv would be fine ?
>
> getenv("PWD");
>
> --
> -- Yoann
> It is well known that M$ products don't call free() after a malloc().
> The Unix community wish them good luck for their future developments.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]