all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#67214] [PATCH] services: xvnc: Do not specify display number when using inetd
@ 2023-11-15 22:53 Thompson, David
  2023-11-25 18:11 ` Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: Thompson, David @ 2023-11-15 22:53 UTC (permalink / raw)
  To: 67214

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

Hey everyone,

I've been struggling to get VNC working with multiple users. Upon
digging into it I realized that it's because the X display number is
fixed in the xvnc service, even when in inetd mode, so only the first
user who connects gets a desktop and everyone else gets an error. By
omitting the display number when using inetd, xvnc just picks an
unused display and I'm now able to log in with multiple user accounts.

The patch is a one-liner and hopefully not very controversial. :)

- Dave

[-- Attachment #2: 0001-services-xvnc-Do-not-specify-display-number-when-usi.patch --]
[-- Type: text/x-patch, Size: 1309 bytes --]

From a7aa18cbb8050ae228aeca2b4a1f724a797983ac Mon Sep 17 00:00:00 2001
Message-ID: <a7aa18cbb8050ae228aeca2b4a1f724a797983ac.1700088462.git.dthompson2@worcester.edu>
From: David Thompson <dthompson2@worcester.edu>
Date: Wed, 15 Nov 2023 17:46:34 -0500
Subject: [PATCH] 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
---
 gnu/services/vnc.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

base-commit: d987b75618a62c95c030e7ca53e0972e700c4f06
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#67214] [PATCH] services: xvnc: Do not specify display number when using inetd
  2023-11-15 22:53 [bug#67214] [PATCH] services: xvnc: Do not specify display number when using inetd Thompson, David
@ 2023-11-25 18:11 ` Mathieu Othacehe
  2023-11-27 16:03   ` bug#67214: " Thompson, David
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Othacehe @ 2023-11-25 18:11 UTC (permalink / raw)
  To: Thompson, David; +Cc: 67214


Hello David,

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

Seems fair, I think you can go ahead.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#67214: [PATCH] services: xvnc: Do not specify display number when using inetd
  2023-11-25 18:11 ` Mathieu Othacehe
@ 2023-11-27 16:03   ` Thompson, David
  0 siblings, 0 replies; 3+ messages in thread
From: Thompson, David @ 2023-11-27 16:03 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 67214-done

Hey Mathieu,

On Sat, Nov 25, 2023 at 1:11 PM Mathieu Othacehe <othacehe@gnu.org> wrote:
>
>
> Hello David,
>
> > * gnu/services/vnc.scm (xvnc-configuration->command-line-arguments): Omit X
> > display number when inetd? is #t.
>
> Seems fair, I think you can go ahead.

Thanks for the review! Pushed as commit
dce3672f5a8eb440ae61a334384423d1e2ff5e65.

- Dave




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-27 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-15 22:53 [bug#67214] [PATCH] services: xvnc: Do not specify display number when using inetd Thompson, David
2023-11-25 18:11 ` Mathieu Othacehe
2023-11-27 16:03   ` bug#67214: " Thompson, David

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.