gnu: gnome: Disable hardware acceleration check via 'gnome.desktop'.
* gnu/packages/gnome.scm (gnome-session)[arguments]: Add 'disable-hardware-acceleration-check' phase.
This commit is contained in:
parent
c510cbb4ec
commit
6cbc8d5766
|
@ -3820,7 +3820,18 @@ such as gzip tarballs.")
|
||||||
(out (assoc-ref outputs "out")))
|
(out (assoc-ref outputs "out")))
|
||||||
(wrap-program (string-append out "/bin/gnome-session")
|
(wrap-program (string-append out "/bin/gnome-session")
|
||||||
`("PATH" ":" prefix (,(string-append glib "/bin"))))
|
`("PATH" ":" prefix (,(string-append glib "/bin"))))
|
||||||
|
#t)))
|
||||||
|
(add-after 'install 'disable-hardware-acceleration-check
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; Do not abort if hardware acceleration is missing. This allows
|
||||||
|
;; GNOME to run in QEMU and on low-end devices.
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(substitute* (string-append out
|
||||||
|
"/share/xsessions/gnome.desktop")
|
||||||
|
(("gnome-session")
|
||||||
|
"gnome-session --disable-acceleration-check"))
|
||||||
#t))))
|
#t))))
|
||||||
|
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
'("--enable-elogind")))
|
'("--enable-elogind")))
|
||||||
(build-system glib-or-gtk-build-system)
|
(build-system glib-or-gtk-build-system)
|
||||||
|
|
Loading…
Reference in New Issue