Giter Club home page Giter Club logo

Comments (6)

badjware avatar badjware commented on August 17, 2024 5

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.

bruno- avatar bruno- commented on August 17, 2024 2

I'll close this issue now, but please open another one if you still experience problems.

from tmux-continuum.

kenny1983 avatar kenny1983 commented on August 17, 2024 1

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.

iovis avatar iovis commented on August 17, 2024

Neat! Thanks man, that looks great. I'm going to throw it into my local installation for now

from tmux-continuum.

Hologos avatar Hologos commented on August 17, 2024

@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.

bruno- avatar bruno- commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.