nongnu: steam: Improve pulseaudio startup

* nongnu/packages/steam-client.scm (make-container-wrapper): Use full path to
pulseaudio and increase exit-idle-time.
Use invoke instead of system.
This commit is contained in:
ison 2021-03-08 15:50:29 -07:00
parent a31cd4a5ec
commit 2978fb94bf
No known key found for this signature in database
GPG key ID: 5E76B1AD0FC22F93

View file

@ -350,8 +350,10 @@ in a sandboxed FHS environment."
(format #t "* DEBUG set to 1: Starting shell. Launch application manually with: ~a.\n\n" (format #t "* DEBUG set to 1: Starting shell. Launch application manually with: ~a.\n\n"
#$(ngc-internal-name container))) #$(ngc-internal-name container)))
(mkdir-p sandbox-home) (mkdir-p sandbox-home)
(system "pulseaudio -D > /dev/null 2>&1") (invoke #$(file-append pulseaudio "/bin/pulseaudio")
(apply system* "--start"
"--exit-idle-time=60")
(apply invoke
`("guix" "environment" `("guix" "environment"
"--ad-hoc" "--container" "--no-cwd" "--network" "--ad-hoc" "--container" "--no-cwd" "--network"
,@(map preserve-var preserved-env) ,@(map preserve-var preserved-env)