[gnome-panel] run-dialog: log warning if g_shell_parse_argv fails
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] run-dialog: log warning if g_shell_parse_argv fails
- Date: Sun, 8 Mar 2020 13:19:15 +0000 (UTC)
commit 777e09ed3516a76a8809f978b8f07e8505e00168
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 8 14:13:01 2020 +0200
run-dialog: log warning if g_shell_parse_argv fails
CID 1445692.
gnome-panel/panel-run-dialog.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index be9c1dd29..cc56525cd 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -376,6 +376,7 @@ panel_run_dialog_prepend_terminal_to_vector (int *argc, char ***argv)
if (terminal) {
gchar *command_line;
gchar *exec_flag;
+ GError *error;
exec_flag = g_settings_get_string (settings, "exec-arg");
@@ -385,10 +386,11 @@ panel_run_dialog_prepend_terminal_to_vector (int *argc, char ***argv)
command_line = g_strdup_printf ("%s %s", terminal,
exec_flag);
- g_shell_parse_argv (command_line,
- &term_argc,
- &term_argv,
- NULL /* error */);
+ error = NULL;
+ if (!g_shell_parse_argv (command_line, &term_argc, &term_argv, &error)) {
+ g_warning ("%s", error->message);
+ g_error_free (error);
+ }
g_free (command_line);
g_free (exec_flag);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]