mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-01 11:41:30 +00:00
Prelim: Potential fixes for wsetupx --arm
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user