I think my approach should be something like:
Read _NET_WM_PID for selmon->sel->win (this is giving me some trouble, actually, but I can probably figure it out)
Walk the process tree down from that PID to the most recent leaf child Get the CWD of that childThe process tree walking is because in a terminal the shell changing directory does not change the CWD of the terminal itself.
Has anyone else done work on this kind of functionality? Any tips? Am I going about this all wrong?
-- Stephen Paul Weber, @singpolyma See <http://singpolyma.net> for how I prefer to be contacted edition right joseph
signature.asc
Description: Digital signature