GLib.set_prgname
Description: Reference for GLib.set_prgname

### Function

# GLibset_prgname

#### Declaration [src]

    void
    g_set_prgname (
      const gchar* prgname
    )

#### Description [src]

Sets the name of the program. This name should not be localized, in contrast to g_set_application_name().

If you are using `GApplication` the program name is set in g_application_run(). In case of GDK or GTK it is set in gdk_init(), which is called by `gtk_init()` and the `GtkApplication::startup` handler. By default, the program name is found by taking the last component of `argv`[0].

Since GLib 2.72, this function can be called multiple times and is fully thread safe. Prior to GLib 2.72, this function could only be called once per process.

See the GTK documentation for requirements on integrating `g_set_prgname()` with GTK applications.

#### Parameters

`prgname`

  Type: `const gchar*`

  The name of the program.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.