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