Open arithran opened 7 years ago
I've got more info on this issue and I've come to the conclusion that it doesn't have anything to do with the systemd process. Let me simplify the issue further
I save my session using bind C-s and it creates a session file fine. I've got the following config that will restore my session on load.
# Tmux Resurrect Settings
set -g @resurrect-strategy-vim 'session' # Fom vim
set -g @resurrect-strategy-nvim 'session' # For neovim
set -g @resurrect-processes 'grunt "grunt watch" "compass watch"' # Additionally restore grunt and compass
# Tmux Continuum Settings
set -g @continuum-restore 'on' # Automatically Restore previously Saved Tmux Sessions
When I type the following command on the terminal, it wouldn't restore my session.
tmux new -d
tmux ls
no server running on /tmp/tmux-1000/default
Here is a link to my tmux config as of today. All the continuum and resurrect settings are towards the end of the file. https://github.com/arithran/dotfiles/blob/10fd4fbe6906d283c8ebaabbbf9c73d555ecca24/.tmux.conf#L165
This sounds like it might be related to has-session behavior in tmux 2.5 since this plugin depends on tmux-resurrect which does call has-session
in restore.sh
.
+1
I have the following tmux config https://gist.github.com/arithran/a4ba6f4f70ac71d3e37db1fbb12954a5#file-tmux-conf
and the following systemd service https://gist.github.com/arithran/a4ba6f4f70ac71d3e37db1fbb12954a5#file-tmux-service
When i comment out
set -g @continuum-boot 'on'
the@continuum-restore 'on'
works and vice versa. I can't seem to get both working at the same time. I am running Fedora 24 stable.Currently, I have opted to keep
set -g @continuum-boot 'on'
and restore my sessions when I am inside tmux using the keyboard binding. But it would be nice if everything just happens on boot.Here is the failed output of systemd when both settings are turned on
Any help would be appreciated. Thanks