mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 00:46:16 +01:00
Fall back to $HOME/Desktop for the DESKTOP directory, like
2007-06-06 Matthias Clasen <mclasen@redhat.com> * glib/gutils.c (g_get_user_special_dir): Fall back to $HOME/Desktop for the DESKTOP directory, like xdg_user_dir_lookup() does. svn path=/trunk/; revision=5543
This commit is contained in:
parent
9d1be184c1
commit
f6f9877b50
@ -1,3 +1,9 @@
|
||||
2007-06-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gutils.c (g_get_user_special_dir): Fall back to
|
||||
$HOME/Desktop for the DESKTOP directory, like
|
||||
xdg_user_dir_lookup() does.
|
||||
|
||||
2007-06-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version
|
||||
|
@ -2436,7 +2436,15 @@ g_get_user_special_dir (GUserDirectory directory)
|
||||
if (g_user_special_dirs == NULL)
|
||||
{
|
||||
g_user_special_dirs = g_new0 (gchar *, G_USER_N_DIRECTORIES);
|
||||
|
||||
load_user_special_dirs ();
|
||||
|
||||
/* Special-case desktop for historical compatibility */
|
||||
if (g_user_special_dirs[G_USER_DIRECTORY_DESKTOP] == NULL)
|
||||
{
|
||||
g_get_any_init ();
|
||||
g_user_special_dirs[directory] = g_build_filename (g_home_dir, "Desktop", NULL);
|
||||
}
|
||||
}
|
||||
|
||||
G_UNLOCK (g_utils_global);
|
||||
|
Loading…
Reference in New Issue
Block a user