tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.35k stars 423 forks source link

Restored sessions do not enter virtual machine - do not restore starting directories #187

Open falzard opened 7 years ago

falzard commented 7 years ago

The pane view is restored but it doesn't enter the virtual machine (pct enter xxx or lxc-attach xxx), and it does not restore starting directories, how to make it happen?

In fact, if it sent the right command before retrieving the pane content (pct enter xxx or lxc-attach xxx) on each window, it would work perfectly fine.

falzard commented 7 years ago

I tried to use the "restore process" config option: set -g @resurrect-processes '"lxc-attach -n"' But it doesn't do anything

I also tried these commands to see if it worked: tmux split-window "lxc-attach -n XXX && cd /home/specificdirectory" tmux split-window "lxc-attach -n XXX" -c "cd /home/specificdirectory" tmux split-window "lxc-attach -n XXX" "cd /home/specificdirectory"

But either they don't work or they simply enter the lxc-container, they don't go to the directory. Using "-c /path" will only work if you are not in a virtualmachine/container.

And using this: tmux split-window "lxc-attach -n XXX; pwd; ls"

"pwd;ls" are not sent as commands

And "tmux new-window -c '/tmp' 'pwd; sleep 1000'", doesn't do anything. Omg so many issues at the same time.

Anybody can help since author is not working on the plugin anymore?

bruno- commented 7 years ago

Hi, please provide the contents of your ~/.tmux/resurrect/last?

I tried to use the "restore process" config option: set -g @resurrect-processes '"lxc-attach -n"'

Did you try set -g @resurrect-processes ':all:'?