getPrgname

Gets the name of the program. This name should not be localized, in contrast to glib.global.getApplicationName.

If you are using #GApplication the program name is set in gio.application.Application.run. In case of GDK or GTK it is set in gdk.global.init_, which is called by gtk.global.init_ and the #GtkApplication::startup handler. The program name is found by taking the last component of argv[0].

string
getPrgname
()

Return Value

Type: string

the name of the program, or null if it has not been set yet. The returned string belongs to GLib and must not be modified or freed.