|
Glib::Utils - Miscellaneous utility functions |
Glib::Utils - Miscellaneous utility functions
use Glib; Glib::set_application_name (Glib::get_real_name."'s Cool Program");
print "app name is ".Glib::get_application_name()."\n";
Here are some useful miscellaneous utilities. GLib is a portability library, providing portable utility functions for C programs. As such, most of these functions seem to violate the Glib binding principle of not duplicating functionality that Perl already provides, but there's a distinction for each one, i swear. The functions for dealing with user information are provided on all GLib-supported platforms, not just where POSIX (which provides similar information) is available, and even work on platforms where %ENV may not include the expected information. Also, the ``application name'' referred to by (set|get)_application_name is a human readable name, distinct from the actual program name provided by Perl's own $0.
Get the human-readable application name set by set_application_name.
Since: glib 2.2
Set the human-readable application name.
Since: glib 2.2
Find the current user's home directory, by system-dependent/appropriate means.
Get the current user's real name.
Get the temp dir as appropriate for the current system. See the GLib docs for info on how it works.
Get the current user's name by whatever system-dependent means necessary.
Copyright (C) 2003-2007 by the gtk2-perl team.
This software is licensed under the LGPL. See the Glib manpage for a full notice.
|
Glib::Utils - Miscellaneous utility functions |