diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-06-13 08:46:21 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-06-13 08:46:21 +0000 |
commit | 325e34c8bbedc6945f6534a72dea967075ae3a53 (patch) | |
tree | 72b93e034071e14e5bd2a701f8d556774e780e3f /devel/gnome-vfs | |
parent | util -> utils (diff) |
Don't assume that ~/.gnome directory always exists - it may not be true for
virgin users, who never used neither GNOME1 desktop not any GNOME1 apps.
Bump portrevision.
Notes
Notes:
svn path=/head/; revision=61195
Diffstat (limited to 'devel/gnome-vfs')
-rw-r--r-- | devel/gnome-vfs/Makefile | 1 | ||||
-rw-r--r-- | devel/gnome-vfs/files/patch-libgnomevfs::gnome-vfs-application-registry.c | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile index 4c0072a9e5a2..5af705123c40 100644 --- a/devel/gnome-vfs/Makefile +++ b/devel/gnome-vfs/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomevfs2 PORTVERSION= 1.9.17 +PORTREVISION= 1 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= pre-gnome2/releases/gnome-2.0-desktop-20020607 diff --git a/devel/gnome-vfs/files/patch-libgnomevfs::gnome-vfs-application-registry.c b/devel/gnome-vfs/files/patch-libgnomevfs::gnome-vfs-application-registry.c new file mode 100644 index 000000000000..bd679de032d2 --- /dev/null +++ b/devel/gnome-vfs/files/patch-libgnomevfs::gnome-vfs-application-registry.c @@ -0,0 +1,29 @@ + +$FreeBSD$ + +--- libgnomevfs/gnome-vfs-application-registry.c 2002/06/13 07:31:15 1.1 ++++ libgnomevfs/gnome-vfs-application-registry.c 2002/06/13 08:25:24 +@@ -940,6 +940,8 @@ + static void + gnome_vfs_application_registry_init (void) + { ++ gchar *tmp; ++ + if (gnome_vfs_application_registry_initialized) + return; + +@@ -961,6 +963,14 @@ + gnome_registry_dir.dirname = g_strdup (DATADIR "/application-registry"); + gnome_registry_dir.system_dir = TRUE; + ++ tmp = g_strconcat (g_get_home_dir(), "/.gnome", NULL); ++ if (mkdir (tmp, 0700) && ++ errno != EEXIST) { ++ g_warning("Could not create per-user Gnome configuration directory: %s", ++ tmp); ++ } ++ g_free(tmp); ++ + user_registry_dir.dirname = g_strconcat (g_get_home_dir(), "/.gnome/application-info", NULL); + user_registry_dir.system_dir = FALSE; + |