1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

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.
This commit is contained in:
Maxim Sobolev 2002-06-13 08:46:21 +00:00
parent 8e5df7b184
commit 325e34c8bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61195
4 changed files with 60 additions and 0 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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;