setPrgname

fnvoid setPrgname(string prgname)

Sets the name of the program. This name should not be localized, in contrast to [glib.global.setApplicationName].

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].

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.

Parameters

prgnamethe name of the program.