Comments (6)
I have the same issue than you.
While your workaround makes tmux-continuum retore on server start it also makes it restore on config reload if you have only a single session. This is undesirable as it effectively rollback your session a few minute everytime you reload your config.
I poked around a bit and found a solution. Instead of checking the number of session, it would be better to check how old the server is. If the age of the server is over a certain threshold, say 10 seconds, allow the restore to happen.
Here is a new condition to do this: [ "$(tmux ls -F '#{start_time}')" -gt "$(($(date +%s)-10))" ]
I am running the plugin with the patched condition and it it works flawlessly.
from tmux-continuum.
I'll close this issue now, but please open another one if you still experience problems.
from tmux-continuum.
I'm having this issue too, but neither @iovis9's or @badjware's suggestion is working for me. Also, by looking into the continuum.tmux and resurrect.tmux scripts I was able to determine the scripts that they use to implement their functionality. But running those directly doesn't work either!!
Perhaps it has something to do with the fact that I'm actually running Linux through Windows' WSL...that could add a whole host of complexities to the issue!
Nonetheless, I'd love to hear more suggestions on how to fix this! MTIA :-)
from tmux-continuum.
Neat! Thanks man, that looks great. I'm going to throw it into my local installation for now
from tmux-continuum.
@bruno- Is gonna gonna get fixed? Thank you
Edit: I just found out that if I disable @continuum-boot
, it automatically restores tmux sessions with the first run.
from tmux-continuum.
Hi all,
sorry for the wait, this should now be fixed via 4e22796
Thanks @badjware, I used your solution and mentioned you in the commit.
from tmux-continuum.
Related Issues (20)
- Autostart session with a specific name?
- Customise status with time remaining HOT 4
- Systemd user service disabled even if not managed by continuum
- Restore to named session if name provided
- Programs are not restarting
- High CPU usage on MacOS after long sleep/hibernate time HOT 2
- Hardcoded DISPLAY Variable Issues
- XAUTHORITY environment variable is not set when using automatic tmux start with systemd HOT 2
- How to restore multiple tmux sessions independently and simultaneously
- Disable auto save before manual save session
- Warp terminal automatic startup script
- Auto-save on exit
- Save file is not created after timeout HOT 3
- Wezterm automatic startup script
- tmux-continuum doesn't work when .tmux.conf is a symbolic link in WSL 2 HOT 3
- tmux unresponsive for 15 - 30 seconds, during continuum saves
- @continuum-boot 'on' causes @continuum-restore 'on' to restore only one session
- plugin not saving correct command
- Refactoring how macOS terminal alternatives are enabled
- TERMUX FIX
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-continuum.