aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/lightdm-arguments-ordering.patch
blob: c3b513a19a6a6f17dba97d3960bcbe89dc840e09 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
When providing the VNCServer command as 'Xvnc -SecurityTypes None',
the formatted command line used would look like:

  Xvnc  -SecurityTypes None :1 -auth /var/run/lightdm/root/:1

which is invalid (the display number must appear first).

Submitted upstream at: https://github.com/canonical/lightdm/pull/265

 src/x-server-local.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/x-server-local.c b/src/x-server-local.c
index 7c4ab870..6c540d18 100644
--- a/src/x-server-local.c
+++ b/src/x-server-local.c
@@ -463,14 +463,20 @@ x_server_local_start (DisplayServer *display_server)
     l_debug (display_server, "Logging to %s", log_file);
 
     g_autofree gchar *absolute_command = get_absolute_command (priv->command);
+    g_auto(GStrv) tokens = g_strsplit (absolute_command, " ", 2);
+    const gchar* binary = tokens[0];
+    const gchar *extra_options = tokens[1];
+
     if (!absolute_command)
     {
         l_debug (display_server, "Can't launch X server %s, not found in path", priv->command);
         stopped_cb (priv->x_server_process, X_SERVER_LOCAL (server));
         return FALSE;
     }
-    g_autoptr(GString) command = g_string_new (absolute_command);
+    g_autoptr(GString) command = g_string_new (binary);
 
+    /* The display argument must be given first when the X server used
+     * is Xvnc. */
     g_string_append_printf (command, " :%d", priv->display_number);
 
     if (priv->config_file)
@@ -513,6 +519,12 @@ x_server_local_start (DisplayServer *display_server)
     if (X_SERVER_LOCAL_GET_CLASS (server)->add_args)
         X_SERVER_LOCAL_GET_CLASS (server)->add_args (server, command);
 
+    /* Any extra user options provided via the VNCServer 'command'
+     * config option are appended last, so the user can override any
+     * of the above. */
+    if (extra_options)
+        g_string_append_printf (command, " %s", extra_options);
+
     process_set_command (priv->x_server_process, command->str);
 
     l_debug (display_server, "Launching X Server");
-- 
2.36.1

pan class='msg-avail'>...* gnu/packages/bootloaders.scm (python-u-boot-pylib): New variable. * gnu/packages/patches/u-boot-fix-u-boot-lib-build.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. Signed-off-by: Vagrant Cascadian <vagrant@debian.org> Maxim Cournoyer 2023-07-19gnu: u-boot: Add crust firmware to pinebook, pine64_plus and pine64-lts....* gnu/packages/bootloaders.scm (make-u-boot-sunxi64-package): Take argument for System Control Processor (SCP) firmware. [native-inputs]: Add SCP firmware. [phases]: Adjust 'set-environment to also set SCP variable. (u-boot-pine64-plus, u-boot-pine64-lts, u-boot-pinebook): Pass appropriate crust firmware as the SCP firmware. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Vagrant Cascadian 2023-07-19gnu: u-boot: Update to 2023.07.02....* gnu/packages/patches/u-boot-infodocs-target.patch: Delete file. * gnu/packages/patches/u-boot-patman-guix-integration.patch: Delete file. * gnu/local.mk: De-register patches. * gnu/packages/patches/u-boot-allow-disabling-openssl.patch: Refresh. * gnu/packages/patches/u-boot-sifive-prevent-reloc-initrd-fdt.patch: Refresh. * gnu/packages/bootloaders.scm (u-boot): Update to 2023.07.02. [native-inputs]: Add python-pyelftools. [source]: Remove patches. (u-boot-tools)[phases]: Update substitution for python3-coverage. Adjust 'patch to catch more openssl incompatibilities. Split lines in 'patch phase. [native-inputs]: Add python-filelock and python-pytest-xdist. (make-u-boot-sunxi64-package): Set SCP environment variable. (u-boot-sifive-unleashed): Update to use opensbi. (u-boot-puma-rk3399)[inputs]: Add arm-trusted-firmware-rk3399 to package-inputs instead of native-inputs. (u-boot-rockpro64-rk3399): Disable CONFIG_SPL_FIT_SIGNATURE in config. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Vagrant Cascadian