Skip to content

Add g_get_argv0(), g_set_argv0() and g_get_executable_path()

The main point of this patch is to provide a portable way to retrieve a path to the executable. To this end, a new interface is provided, allowing glib to know the full value of argv[0]. g_option_context_parse() will set this value like it currently sets prgname. g_get_prgname() can then use this value's basename as default.

Fixes: #31

Edited by Emmanuel Fleury

Merge request reports