Coder Social home page Coder Social logo

Comments (8)

calandoa avatar calandoa commented on August 19, 2024

Also, I am using xterm:

TERM=xterm
XTERM_LOCALE=en_US.UTF-8
XTERM_SHELL=/bin/zsh
XTERM_VERSION='XTerm(330)'

from lino.

ahmednooor avatar ahmednooor commented on August 19, 2024

@calandoa
I am using copypasta lib for accessing OS clipboard. As of now it only supports wayland and x11 clipboards (see: https://docs.rs/copypasta/0.7.1/copypasta/). I am not much of a deep systems person so pardon me if I am wrong but maybe it is because xfce under the hood, doesn't use x11 or wayland clipboard and instead has its own implementation? Can you conform? Thanks.

from lino.

calandoa avatar calandoa commented on August 19, 2024

XFCE use the standard X11 clipboard system. Unfortunately XFCE is the only manager I have on my system so I cannot try with another one. I also tried with gnome-terminal and I get the same problem.

from lino.

ahmednooor avatar ahmednooor commented on August 19, 2024

Seems like a missing library. I am using copypasta for clipboard access, this lib is a fork of rust-clipboard which requires the xorg-dev lib to be installed.

Please check the links below for further.
[WARNING]: Steps mentioned in the links below, might break your OS. So please proceed with caution.

https://github.com/ahmednooor/lino/tree/main#build

copypasta

rust-clipboard prerequisites

I have also created a separate branch with the name issue-6 in which I have commented out accessing the OS clipboard manager. Please clone and run that and share the findings.

Thanks.

from lino.

calandoa avatar calandoa commented on August 19, 2024

So I installed xorg-dev, I checked out issue-6, I built and ran with cargo run... and I can copy and paste stuff internally. So the culprit seem to be the library again.

from lino.

ahmednooor avatar ahmednooor commented on August 19, 2024

Thank you. Try to build and run the main branch as well and see if installing xorg-dev fixed it or not.

from lino.

calandoa avatar calandoa commented on August 19, 2024

Well, thanks to you for your work!

After installing xorg-dev and switching back to main, the copy/paste is working fine at the system level.

But afterwards, I tried to desinstall xorg-dev, clean, reboot and rebuild all to be sure... and it is still working!

I searched a bit and finally the difference is just building lino from the source (git clone) is working, but installing it directly with cargo install breaks the copy/paste. I did not investigate further, so maybe this is finally cargo the culprit.

from lino.

ahmednooor avatar ahmednooor commented on August 19, 2024

Thank you. That is quite strange. I am keeping this issue open for now.

from lino.

Related Issues (5)

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.