Comments (11)
@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.
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.
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.
@HuakunShen btw what platform you use?
from clipboard-master.
@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.
@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.
It works on Mac, thanks. Any update to X11? I read the source code. The X11 version is indeed so complicated.
from clipboard-master.
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.
Thanks! I will try to get this and Wayland working when I got time.
from clipboard-master.
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.
@DoumanAsh Thank you so much!
from clipboard-master.
Related Issues (7)
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 clipboard-master.