mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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
This commit is contained in:
commit
ad07a8e9ca
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user