diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2021-04-27 13:59:59 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2021-04-27 13:59:59 +0000 |
commit | ad07a8e9cab2da932a1320e410c84f4d3bb55e5b (patch) | |
tree | 1052440119257972f7d846d1abb8c8d691a05744 | |
parent | 232d008ec8e126fbe02fface01c56cbb2b145fb3 (diff) | |
parent | 1000acade777766ed382f0ee8efb060e786c504e (diff) | |
download | glib-ad07a8e9cab2da932a1320e410c84f4d3bb55e5b.tar.gz |
Merge branch 'gdbus-tool-use-basename-fix' into 'master'
gdbus-tool: Actually use argv[0] basename as program name
See merge request GNOME/glib!2069
-rw-r--r-- | gio/gdbus-tool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gdbus-tool.c b/gio/gdbus-tool.c index 1f9e308d5..dac01b763 100644 --- a/gio/gdbus-tool.c +++ b/gio/gdbus-tool.c @@ -145,7 +145,7 @@ modify_argv0_for_command (gint *argc, gchar **argv[], const gchar *command) remove_arg (1, argc, argv); program_name = g_path_get_basename ((*argv)[0]); - s = g_strdup_printf ("%s %s", (*argv)[0], command); + s = g_strdup_printf ("%s %s", program_name, command); (*argv)[0] = s; g_free (program_name); } |