Comment 4 for bug 1110773

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

The process tree for screen running multiple "windows" looks like:
screen (cwd not available, causes the root path)
  SCREEN
    /bin/bash (first bash that would be encountered)
    /bin/bash
    /bin/bash
    /bin/bash

There's a psutil library that will descend the children so I can pull the first working cwd, but with screen any of the following three bash could be the active and visible one, and a completely different cwd to the first one. This could be confusing, unless someone has better google-fu and can come up with a way to determine which of screens children is the one with focus.