gnu: cheese: Wrap GST_PRESET_PATH to find GstVP8Enc.prs.

Before this fix, cheese would complain like so:

   (cheese:15094): cheese-WARNING **: Can't find vp8enc preset: "Profile
   Realtime", using alternate preset: "Cheese Realtime". If you see this, make a
   bug report!

If you've run cheese before, make sure to run "rm -rf
~/.local/share/gstreamer-1.0" to make the fix effective.

* gnu/packages/gnome.scm (cheese) [phases]: Set the GST_PRESET_PATH
environment variable in the wrap phase.
This commit is contained in:
Maxim Cournoyer 2023-01-21 22:36:30 -05:00
parent d10c8f5ef1
commit 201fb6c63b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -11460,10 +11460,14 @@ (define-public cheese
(substitute* "meson_post_install.py"
(("gtk-update-icon-cache") (which "true")))))
(add-after 'install 'wrap-cheese
(lambda* (#:key outputs #:allow-other-keys)
(lambda* (#:key inputs outputs #:allow-other-keys)
(wrap-program (search-input-file outputs "bin/cheese")
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix
(,(getenv "GST_PLUGIN_SYSTEM_PATH")))))))))
`("GST_PLUGIN_SYSTEM_PATH" prefix
(,(getenv "GST_PLUGIN_SYSTEM_PATH")))
`("GST_PRESET_PATH" prefix
(,(dirname (search-input-file inputs
"share/gstreamer-1.0\
/presets/GstVP8Enc.prs"))))))))))
(build-system meson-build-system)
(native-inputs
(list docbook-xml-4.3