Canop
October 26, 2021, 9:16am
1
I can't seem to find any crate supporting the X11 clipboard on recent distributions. And existing (non working) crates all seem to have gone unmaintained.
Is there some effort somewhere that I didn't find ? Anybody knowing the arcane of X11 well enough to try write such crate or to give hints on how to do it, at least for texts ?
Druid's X11 backend implements clipboard handling itself using the bindings crate x11rb ; you could look at that for inspiration:
// Copyright 2020 The Druid Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Interactions with the system pasteboard on X11.
use std::cell::{Cell, RefCell};
use std::collections::VecDeque;
use std::convert::TryFrom;
use std::rc::Rc;
This file has been truncated. show original
2 Likes
Canop
October 26, 2021, 2:51pm
3
Thanks. I'll see if I can get something working without windows with x11rb.
system
Closed
January 24, 2022, 2:51pm
4
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.