gnu: spice-gtk: Adjust the default file name of the ACL helper binary.

* gnu/packages/spice.scm (spice-gtk)
[arguments]: Add adjust-default-acl-helper-path phase.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Maxim Cournoyer 2023-02-17 09:35:15 -05:00
parent e403096b4a
commit bbc10628b6
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -159,6 +159,16 @@ (define-public spice-gtk
((".*'session.c',.*") "") ((".*'session.c',.*") "")
(("tests_sources \\+= 'cd-emu.c'" all) (("tests_sources \\+= 'cd-emu.c'" all)
(string-append "# " all))))) (string-append "# " all)))))
(add-after 'unpack 'adjust-default-acl-helper-path
(lambda _
;; The USB ACL helper used to allow USB redirection as a
;; non-privileged user needs to be setuid, as configured by the
;; gnome-desktop-service-type. A user can still change the
;; location by specifying the SPICE_USB_ACL_BINARY environment
;; variable.
(substitute* "src/usb-acl-helper.c"
(("ACL_HELPER_PATH\"/spice-client-glib-usb-acl-helper\"")
"\"/run/setuid-programs/spice-client-glib-usb-acl-helper\""))))
(add-before 'configure 'correct-polkit-dir (add-before 'configure 'correct-polkit-dir
(lambda _ (lambda _
(substitute* "meson.build" (substitute* "meson.build"