[ CCode ( cname = "g_set_prgname" ) ]
public void set_prgname (string application_name)

Sets the name of the program.

This name should not be localized, in contrast to 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. The program name is found by taking the last component of argv[0].

Note that for thread-safety reasons this function can only be called once.



the name of the program.

Namespace: GLib.Environment
Package: glib-2.0