Commit b359dbbf authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Test the new XDG basedir functions.

2004-08-26  Tor Lillqvist  <tml@iki.fi>

	* tests/testglib.c (main): Test the new XDG basedir functions.
parent 1de0e063
2004-08-26 Tor Lillqvist <tml@iki.fi>
* tests/testglib.c (main): Test the new XDG basedir functions.
2004-08-25 Tor Lillqvist <tml@iki.fi>
* glib/gwin32.c (g_win32_get_windows_version): New
......
2004-08-26 Tor Lillqvist <tml@iki.fi>
* tests/testglib.c (main): Test the new XDG basedir functions.
2004-08-25 Tor Lillqvist <tml@iki.fi>
* glib/gwin32.c (g_win32_get_windows_version): New
......
2004-08-26 Tor Lillqvist <tml@iki.fi>
* tests/testglib.c (main): Test the new XDG basedir functions.
2004-08-25 Tor Lillqvist <tml@iki.fi>
* glib/gwin32.c (g_win32_get_windows_version): New
......
2004-08-26 Tor Lillqvist <tml@iki.fi>
* tests/testglib.c (main): Test the new XDG basedir functions.
2004-08-25 Tor Lillqvist <tml@iki.fi>
* glib/gwin32.c (g_win32_get_windows_version): New
......
2004-08-26 Tor Lillqvist <tml@iki.fi>
* tests/testglib.c (main): Test the new XDG basedir functions.
2004-08-25 Tor Lillqvist <tml@iki.fi>
* glib/gwin32.c (g_win32_get_windows_version): New
......
......@@ -322,6 +322,8 @@ int
main (int argc,
char *argv[])
{
const gchar *s;
gchar **sv;
GList *list, *t;
GSList *slist, *st;
GHashTable *hash_table;
......@@ -434,7 +436,20 @@ main (int argc,
g_free (string);
g_print ("user: %s\n", g_get_user_name ());
g_print ("real: %s\n", g_get_real_name ());
g_print ("home: %s\n", g_get_home_dir ());
s = g_get_home_dir ();
g_print ("home: %s\n", s ? s : "NULL!");
s = g_get_home_dir ();
g_print ("home: %s\n", s ? s : "NULL!");
s = g_get_user_data_dir ();
g_print ("user_data: %s\n", s ? s : "NULL!");
s = g_get_user_config_dir ();
g_print ("user_config: %s\n", s ? s : "NULL!");
s = g_get_user_cache_dir ();
g_print ("user_cache: %s\n", s ? s : "NULL!");
sv = (gchar **) g_get_system_data_dirs ();
g_print ("system_data: %s\n", sv ? g_strjoinv (G_SEARCHPATH_SEPARATOR_S, sv) : "NULL!");
sv = (gchar **) g_get_system_config_dirs ();
g_print ("system_config: %s\n", s ? g_strjoinv (G_SEARCHPATH_SEPARATOR_S, sv) : "NULL!");
g_print ("tmp-dir: %s\n", g_get_tmp_dir ());
/* type sizes */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment