Giter Club home page Giter Club logo

Comments (15)

Slackadays avatar Slackadays commented on June 10, 2024 1

I hate xsel and xclip and wl-clipboard (which is why I made cb), so I'll do my best to make sure nobody has to use them. :)

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

This has to be a bug with daemon detection as there should only be one background cb instance

from clipboard.

jscarrott avatar jscarrott commented on June 10, 2024

If there is any debug information you need I'm happy to try and collect that for you. I will also say that there are a large number of defunct cb processes that seem to linger for a long time as well.

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

Is it possible for you to upgrade to 0.8.3? I believe it actually addressed this specific issue: https://github.com/Slackadays/Clipboard/releases/tag/0.8.3

from clipboard.

jscarrott avatar jscarrott commented on June 10, 2024

I'm actually on 0.8.3 it looks like it also has a bug where the version is reported as 0.8.2 (commit c785b5e). I had updated through linuxbrew and just run the binary directly from the release you linked and they both say 0.8.2

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

I'm going to check out the daemon detector and see if I can reproduce this. Also, how many entries do your clipboards have? I'm wondering because you mentioned that you use CB heavily and I have no idea how many entries CB's power users are saving.

from clipboard.

jscarrott avatar jscarrott commented on June 10, 2024

My main clipboard which I use for 99% of copying has about 600 entries and 17MB of data. It's also set to be persistent.

from clipboard.

willothy avatar willothy commented on June 10, 2024

Definitely has nothing to do with the number of entries, I just started using cb a few hours ago and I have run into this issue when attempting to set it up as a clipboard provider for Neovim.

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

@jscarrott @willothy Would you mind trying out the following command as a temporary workaround?

alias cb="killall -q cb; cb"

What this does is automatically get rid of all existing cb processes before invoking cb, so that there will only ever be one instance running. The reason we don't already do this is because there could be cb running by a different user or in a script. Therefore, we can't guarantee this method will always give the expected result, but for this particular case, it should work just fine.

from clipboard.

willothy avatar willothy commented on June 10, 2024

Yes, that's what I ended up doing temporarily. It helped but I ended up switching back to xsel for now. Cb is awesome except for this though, definitely will switch back once it's fixed :)

On that note, couldn't some kind of lockfile/pidfile be created in the users' /var/run dirs or equivalent to check for this?

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

Fixed in bc528a6

from clipboard.

willothy avatar willothy commented on June 10, 2024

Oh awesome, thanks! That was quick lol

from clipboard.

jscarrott avatar jscarrott commented on June 10, 2024

Brilliant! Is there a timescale for when this will make it into a release, so I can stop periodically killing cb instances?

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

Depending on how many other issue fixes I want to add, I'd say this weekend or the next one.

from clipboard.

Slackadays avatar Slackadays commented on June 10, 2024

@jscarrott 0.9.0 is out now: https://github.com/Slackadays/Clipboard/releases/tag/0.9.0.1

from clipboard.

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.