Prelim: Potential fixes for wsetupx --arm

This commit is contained in:
Rory Fewell
2025-07-04 00:53:27 +01:00
parent 2e3bc3f739
commit 01485cd0b0
2 changed files with 19 additions and 4 deletions

View File

@@ -119,16 +119,31 @@ gboolean wintc_setup_arm_system(void)
{
if (!strstr(linux_cmdline, "splash"))
{
gchar* unquoted =
g_shell_unquote(linux_cmdline, &error);
if (!unquoted)
{
wintc_log_error_and_clear(&error);
return FALSE;
}
gchar* new_linux_cmdline =
g_strdup_printf("%s splash", linux_cmdline);
g_strdup_printf("%s splash", unquoted);
gchar* quoted =
g_shell_quote(new_linux_cmdline);
g_free(unquoted);
g_free(new_linux_cmdline);
g_free(linux_cmdline);
linux_cmdline = new_linux_cmdline;
linux_cmdline = quoted;
}
}
else
{
linux_cmdline = g_strdup("splash");
linux_cmdline = g_shell_quote("splash");
}
g_key_file_set_string(

View File

@@ -55,7 +55,7 @@ int main(
);
g_option_context_add_group(
ctx,
gtk_get_option_group(TRUE)
gtk_get_option_group(FALSE)
);
if (!g_option_context_parse(ctx, &argc, &argv, &error))