tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.41k stars 424 forks source link

Error in ressurect with new-window #432

Closed MattBystrin closed 2 years ago

MattBystrin commented 2 years ago

Hello, and thanks for that awesome plugin ! However I have noticed that it do not resurrect applications launched via new-window command. I really enjoy starting some applications this way, because when I close the app, the corresponding window closes too. I have tried mc and nvim with new-window command - no result. If I launch it from shell, everything is OK ! Is it possible to restore applications with that way of spawning it ?

I have the default config OS - Debian 11 Tmux version 3.2a

tmux_resurrect_20220402T231932.txt

MattBystrin commented 2 years ago

Well, by investigating source code I saw, that process command by default extracted by ps or pgrep, by matching parent pid of the process with the "pane" pid. Is is possible in architecture of plugin to lookup if command pid and pane pid equals, then dump the command pid. I'm gonna experiment with that. If I get some improvements, I will open the PR.

MattBystrin commented 2 years ago

I'm closing issue, because of existing of PR