astrand / xclip

Command line interface to the X11 clipboard
GNU General Public License v2.0
1.04k stars 75 forks source link

Seperate xclib library? #77

Open monoidic opened 4 years ago

monoidic commented 4 years ago

Hi, since the readme said that feedback was an option, I'd like to ask this. Have you considered making a simple library out of xclib that other projects could use? Since from what I've seen, the situation appears dire for Linux applications accessing clipboard data. I've looked around a bit at projects/libraries which claim to handle clipboard data for multiple platforms, or just Linux, and a lot of code out there does what I assume is the "right" thing under Windows, accessing some win32 APIs. But under Linux, you seemingly only get two kinds of projects: the ones that use xclip/xsel via the language's equivalent of system() and fails if it can't find either, or pulls in GTK+ or Qt just for the clipboard-related functions. Is xclib.so an option for the future?