GLib.get_prgname
function get_prgname(): String { // Gjs wrapper for g_get_prgname() }
Gets the name of the program. This name should not be localized, in contrast to GLib.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.