get_prgname


Description:

public unowned string get_prgname ()

Gets the name of the program.

This name should not be localized, in contrast to get_application_name.

If you are using GDK or GTK+ the program name is set in gdk_init, which is called by gtk_init. The program name is found by taking the last component of argv[0].

Returns:

the name of the program. The returned string belongs to GLib and must not be modified or freed.


Namespace: GLib.Environment
Package: glib-2.0