Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eel-gnome-extensions.c: Support whitespace in execution commands #3413

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

rcalixte
Copy link
Member

@rcalixte rcalixte commented Jun 3, 2024

A default command line with whitespace will fail to execute, either silently or with a visible error, depending on the trigger. In addition, some actions would default to launching with GNOME Terminal even when another terminal was configured as the default. This adds a default list of terminals, proper switches for execution, and a boolean for whether or not the command line sequence needs to be escaped.

Closes #2571

@mtwebster
Copy link
Member

I notice we never free command_line in eel_gnome_open_terminal_on_screen, can you add also?

@@ -155,4 +155,6 @@ eel_gnome_open_terminal_on_screen (const gchar *command,
 
                g_error_free (error);
        }
+
+    g_free (command_line);
 }

A default command line with whitespace will fail to execute, either
silently or with a visible error, depending on the trigger. In addition,
some actions would default to launching with GNOME Terminal even when
another terminal was configured as the default. This adds a default list
of terminals, proper switches for execution, and a boolean for whether
or not the command line sequence needs to be escaped.

Closes linuxmint#2571
@mtwebster mtwebster merged commit 88ec5d2 into linuxmint:master Jun 4, 2024
2 checks passed
@rcalixte rcalixte deleted the slippery_eel branch June 4, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants