wgetpaste (one of the myriads of pastebin-clis) allows the user to paste the content of the clipboard. But on a vanilla installation it wants the user to do some extra work. Thus I'd like to add an "X" useflag (similar to app-text/nopaste) which does this work for the user. Reproducible: Always Steps to Reproduce:
Created attachment 130230 [details] /etc/wgetpaste A standard config file for wgetpaste setting the get_from_clipboard() function as stated by the normal "wgetpaste -x" output.
Created attachment 130231 [details] new wgetpaste-2.4.ebuild And here the appropriate ebuild. It just adds the useflag "X" and if this is set, RDEPENDS on x11-misc/xclip and installs the config file.
Nice, and why should it depend on xclip when it can work with xcut, klipper or whatever else?
(In reply to comment #3) > Nice, and why should it depend on xclip when it can work with xcut, klipper or > whatever else? > Good point. Just wanted to supply a useful default...
Well, then make it a bit more flexible at least? :) Like: get_from_clipboard() { if [[ -x $(type -P xclip) ]] ; then xclip -o elif [[ -x $(type -P xcut) ]] ; then ... elif ... else }
I tried ... and it resulted in bug #191553 ;). And klipper seems to be only a GUI -- thus can't be accessed from CLI
reopen
Fixed upstream in 2.5 now :)
Should note that there will be no X use flag or dependency on xclip. Instead it now checks for the xclip binary as per comment 5 and uses xclip if present. Otherwise it bails with a message explaining to either emerge xclip or redefine the clipboard function to use something else... Similarly a --xpaste has been introduced.