bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34216: Shroud require xclip for x clipboard


From: nly
Subject: bug#34216: Shroud require xclip for x clipboard
Date: Sun, 27 Jan 2019 16:23:52 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)


> /gnu/store/w862nkwzvv2m3ng5lg5zlic1i962g416-gnupg-2.2.12           238.8    
> 10.1   3.8%
> /gnu/store/agz9m74v7235h30mc3bdmj2nmyxqga4c-xclip-0.13             102.7     
> 0.1   0.0%
> Looks like xclip is already in the closure of shroud,

I see, thanks.

> patch the reference to it so shroud can always find xclip.

How? 

Snippet from (shroud utils):

;; Instance of use of xclip
(define (call-with-clipboard proc)
  "Call PROC with an open output port to the X clipboard."
  (call-with-output-pipe* (list %xclip "-selection" "clipboard") proc))

;; Use of gpg
(define (call-with-encrypted-output-file file user-id proc)
  "Apply PROC with an output port that writes encrypted data to FILE
for the recipient USER-ID."
  (call-with-output-pipe* `(,(gpg-binary)
                            "--no-tty" "--batch" "--yes"
                            "--encrypt" "--armor"
                            "--recipient" ,user-id
                            "--output" ,file)
    proc))

Thanks,
amar





reply via email to

[Prev in Thread] Current Thread [Next in Thread]