From e00b4b55c85e3228f7d24ccca12bfec6c992ab4e Mon Sep 17 00:00:00 2001 From: Tautvis Date: Sat, 22 Nov 2025 01:45:46 +0200 Subject: [PATCH] os: utils.c ignore '-reset' and '-noreset' command line arguments Certain display managers (for example SDDM) starts X server with -noreset flag and it is not user configurable. This patch add code to ignore -noreset and -reset command line arguments to prevent X server crash due to unknown arguments. Signed-off-by: Tautvis --- os/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os/utils.c b/os/utils.c index a959b350dc..4e3422ea2b 100644 --- a/os/utils.c +++ b/os/utils.c @@ -600,6 +600,12 @@ ProcessCommandLine(int argc, char *argv[]) else UseMsg(); } + else if (strcmp(argv[i],"-noreset") == 0){ + ErrorF("Argument -noreset is removed in XLibre (for more context: https://github.com/orgs/X11Libre/discussions/424 )\n"); + } + else if(strcmp(argv[i],"-reset") == 0){ + ErrorF("Argument -reset is removed in XLibre (for more context: https://github.com/orgs/X11Libre/discussions/424 )\n"); + } else if (strcmp(argv[i], "-p") == 0) { if (++i < argc) defaultScreenSaverInterval = ((CARD32) atoi(argv[i])) *