Package: glib

Function glib:prgname

Lambda List

glib:prgname ()

Syntax

(g:prgname) => prgname
(setf (g:prgname) prgname)

Arguments

prgname -- a string for the name of the program

Details

Gets or sets the name of the program. This name should not be localized, in contrast with the g:application-name function. If you are using GDK or GTK the program name is set in the gdk_init() function, which is called by the gtk_init() function. The program name is found by taking the last component of the first command line argument.

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.
 

See also

2026-01-02