Archived
1
0
Fork 0

gnu: gnome-initial-setup: Record file name of 'gsd-keyboard-display'.

* gnu/packages/gnome.scm (gnome-initial-setup)[arguments]: Add
'set-gkbd-file-name' phase.
[inputs]: Add LIBGNOMEKBD.
This commit is contained in:
Ludovic Courtès 2020-04-03 14:39:49 +02:00
parent 1ace39da78
commit c627e2cba4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -536,7 +536,18 @@ extraction, and lookup for applications on the desktop.")
(arguments (arguments
'(#:configure-flags '(;; Enable camera support for user selfie. '(#:configure-flags '(;; Enable camera support for user selfie.
"-Dcheese=auto" "-Dcheese=auto"
"-Dsystemd=false"))) "-Dsystemd=false")
#:phases (modify-phases %standard-phases
(add-after 'unpack 'set-gkbd-file-name
(lambda* (#:key inputs #:allow-other-keys)
;; Allow the "Preview" button in the keyboard layout
;; selection dialog to display the layout.
(let ((libgnomekbd (assoc-ref inputs "libgnomekbd")))
(substitute* "gnome-initial-setup/pages/keyboard/cc-input-chooser.c"
(("\"gkbd-keyboard-display")
(string-append "\"" libgnomekbd
"/bin/gkbd-keyboard-display")))
#t))))))
(native-inputs (native-inputs
`(("gettext" ,gettext-minimal) `(("gettext" ,gettext-minimal)
("glib:bin" ,glib "bin") ("glib:bin" ,glib "bin")
@ -565,7 +576,8 @@ extraction, and lookup for applications on the desktop.")
("pwquality" ,libpwquality) ("pwquality" ,libpwquality)
("rest" ,rest) ("rest" ,rest)
("upower" ,upower) ("upower" ,upower)
("webkitgtk" ,webkitgtk))) ("webkitgtk" ,webkitgtk)
("libgnomekbd" ,libgnomekbd)))
(synopsis "Initial setup wizard for GNOME desktop") (synopsis "Initial setup wizard for GNOME desktop")
(description "This package provides a set-up wizard when a (description "This package provides a set-up wizard when a
user logs into GNOME for the first time. It typically provides a user logs into GNOME for the first time. It typically provides a