Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xclip: -t: No such file or directory #35

Closed
htfy96 opened this issue Jan 19, 2016 · 11 comments
Closed

xclip: -t: No such file or directory #35

htfy96 opened this issue Jan 19, 2016 · 11 comments

Comments

@htfy96
Copy link
Contributor

htfy96 commented Jan 19, 2016

ERROR(shell error): Error running: xclip -t text/html -selection clipboard
xclip: -t: No such file or directory

I'm using xclip 0.12-4 on Arch Linux, and man xclip doesn't give out any information about -t. I guess -t is no longer supported in this version.

@chiphogg
Copy link
Contributor

I've tried to find the xclip version control to see whether/when/why that option was removed, but I'm coming up empty. I found Arch's xclip page, which lists 0.12-4 as the current version, but its upstream link points to sourceforge, which only shows version 0.12.

Any ideas?

@htfy96
Copy link
Contributor Author

htfy96 commented Jan 19, 2016

According to its PKGBUILD, the binary on Arch(0.12-4 where 4 is pkgver which doesn't change source) is built from http://sourceforge.net/projects/xclip/files/xclip/0.12/xclip-0.12.tar.gz/download. I browsed through the source and didn't find anything about -t. Maybe your distribution made extra patch on it.

@dbarnett
Copy link
Contributor

I see the --target option added in xclip r81: http://sourceforge.net/p/xclip/code/81/

@htfy96
Copy link
Contributor Author

htfy96 commented Jan 19, 2016

Hmm... That commit was done on 2010-04-30 while xlip-0.12 was released on 2009-09-27 and Arch only follows mainstream releases. It seems that xclip didn't have a release in the past 5 years.

@wsdjeg
Copy link

wsdjeg commented Jan 20, 2016

maybe you can try with xsel

@htfy96
Copy link
Contributor Author

htfy96 commented Jan 20, 2016

I have switched to xclip-svn in AUR, which works well. It would be better if this were mentioned in README.md.

@wsdjeg
Copy link

wsdjeg commented Jan 20, 2016

haven't used before,I install this proj just for neovim .By the way I am using fcixt's clipboard

@chiphogg
Copy link
Contributor

Okay, let's figure out where we're at so we can fix this thing.

  • Switching to xclip-svn in AUR gives a recent-enough xclip which has the -t option.
  • xsel was suggested, but I don't see any way in the man page to specify HTML output. So I don't think it would be a viable alternative.

Does that sound about right?

If so, I think fixing up README.md should do it. We can add a section about installing xclip (right now it's an undeclared dependency -- oops!). That section can have install instructions for Ubuntu and Arch.

How does that sound?

@htfy96
Copy link
Contributor Author

htfy96 commented Jan 27, 2016

Great.

@htfy96 htfy96 closed this as completed Jan 27, 2016
@chiphogg
Copy link
Contributor

@htfy96, can you write some instructions here for how to switch to xclip-svn on Arch? I've never used Arch, so I don't know.

Then I can incorporate your instructions into the pull request. Or you can write the PR yourself if you want; let me know what you prefer.

@htfy96
Copy link
Contributor Author

htfy96 commented Jan 28, 2016

OK. I'll submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants