services: xvnc: Do not specify display number when using inetd.

* gnu/services/vnc.scm (xvnc-configuration->command-line-arguments): Omit X
display number when inetd? is #t.

Change-Id: I0fc8e3068f3ae22421e60e96bd40e3b6e477ca99
This commit is contained in:
David Thompson 2023-11-15 17:46:34 -05:00
parent 842e491e2e
commit dce3672f5a
No known key found for this signature in database
GPG key ID: 8328C7470FF1D807

View file

@ -149,7 +149,7 @@ (define (xvnc-configuration->command-line-arguments config)
(xvnc display-number geometry depth port ipv4? ipv6? password-file xdmcp? (xvnc display-number geometry depth port ipv4? ipv6? password-file xdmcp?
inetd? frame-rate security-types localhost? log-level extra-options) inetd? frame-rate security-types localhost? log-level extra-options)
#~(list #$(file-append xvnc "/bin/Xvnc") #~(list #$(file-append xvnc "/bin/Xvnc")
#$(format #f ":~a" display-number) #$@(if inetd? '() (list (format #f ":~a" display-number)))
"-geometry" #$geometry "-geometry" #$geometry
"-depth" #$(number->string depth) "-depth" #$(number->string depth)
#$@(if inetd? #$@(if inetd?