Git Product home page Git Product logo

Comments (11)

DoumanAsh avatar DoumanAsh commented on June 9, 2024 1

@HuakunShen I published 4.0.0-beta.3 that has significant refactoring to x11 clipboard and introduces Shutdown channel for all platforms

from clipboard-master.

HuakunShen avatar HuakunShen commented on June 9, 2024

Something like https://users.rust-lang.org/t/using-arc-to-terminate-a-thread/81533 or https://stackoverflow.com/questions/26199926/how-to-terminate-or-suspend-a-rust-thread-from-another-thread

from clipboard-master.

DoumanAsh avatar DoumanAsh commented on June 9, 2024

Right now there is no way to stop it because I just never had need.
I can consider implement some signal in a simple manner

It also can be problematic because thread blocks waiting for clipboard event (windows and X11)

from clipboard-master.

DoumanAsh avatar DoumanAsh commented on June 9, 2024

@HuakunShen btw what platform you use?

from clipboard-master.

HuakunShen avatar HuakunShen commented on June 9, 2024

@DoumanAsh

@HuakunShen btw what platform you use?

I am using MacOS but I am actually building cross platform apps for all 3 OS.

Thank you for your work!

from clipboard-master.

DoumanAsh avatar DoumanAsh commented on June 9, 2024

@HuakunShen You can try my branch on mac os, but x11 needs more thinking on implementing shutdown as X11 bindings in Rust are quite crappy for use

from clipboard-master.

HuakunShen avatar HuakunShen commented on June 9, 2024

It works on Mac, thanks. Any update to X11? I read the source code. The X11 version is indeed so complicated.

from clipboard-master.

DoumanAsh avatar DoumanAsh commented on June 9, 2024

No, sorry, unfortunately I didn't find any way to do it properly with X11, there might be some ways, but I'm yet to invest time to investigate it

from clipboard-master.

HuakunShen avatar HuakunShen commented on June 9, 2024

Thanks! I will try to get this and Wayland working when I got time.

from clipboard-master.

DoumanAsh avatar DoumanAsh commented on June 9, 2024

I'll appreciate PR, but please note that most likely you'll have to re-write whole X11 code base
x11-clipboard doesn't expose any functionality to perform timed await for change so likely you need to use x11 crate directly

from clipboard-master.

HuakunShen avatar HuakunShen commented on June 9, 2024

@DoumanAsh Thank you so much!

from clipboard-master.

Related Issues (7)

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.