Comment 1 for bug 1110773

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

I had a little play around with this. It's a bit tricky to come up with a perfect solution. Possible options are:

1) We check the cwd of the children of the screen process. I can do this, but it's the first child process with a cwd, not necessarily the *current* shell/process in screen. Unless there is some way to determine which process is active under screen which I haven't discovered.

2) The cwd of the terminator process (where it was launched from)

3) The home directory of the user

4) The root folder.

I'm not sure which is most logical and follows the UI principle of "least surprise". I suspect 2 or 3. They are also easier and less invasive to implement.

Opinions?