Subject: Re: bug#73451: privileged-program - Wrong type argument in position 1 (expecting struct)

From: Tobias Geerinckx-Rice <[email-masked]>
Date: Tue, 24 Sep 2024 16:35:45 +0000

Hi Giovanni,

(Did you mean to immediately open a bug report?)

On 24 September 2024 14:03:55 UTC, Giovanni Biscuolo via Bug reports for GNU Guix <[email-masked]> wrote:
>	 (append (list (privileged-program
>			(program (file-append spice-gtk "/libexec/spice-client-glib-usb-acl-helper"))
>			(setuid? #t))
>		       %default-privileged-programs)))

You should really [configure your editor to] indent your code.

The error will immediately become obvious, and future ones like it will too.  You meant to write

  (append (list foo)
          %another-list))

not

  (append (list foo %another-list))

which creates that incorrectly nested your Guix is freaking out about.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.