[maemo-commits] [maemo-commits] r18317 - in projects/haf/trunk/hildon-thumbnail: . daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon May 11 19:04:09 EEST 2009
Author: pvanhoof
Date: 2009-05-11 19:04:00 +0300 (Mon, 11 May 2009)
New Revision: 18317

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/config.h.in
   projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-daemon.c
Log:
2009-05-11  Philip Van Hoof  <pvanhoof at codeminded.be>

        * Bugfix for Bug #114780 (creating dummy files)



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-05-11 14:59:59 UTC (rev 18316)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-05-11 16:04:00 UTC (rev 18317)
@@ -1,3 +1,7 @@
+2009-05-11  Philip Van Hoof  <pvanhoof at codeminded.be>
+
+	* Bugfix for Bug #114780 (creating dummy files)
+
 2009-05-08  Philip Van Hoof  <pvanhoof at codeminded.be>
 
 	* daemon/utils.c: Lowercasing albumart

Modified: projects/haf/trunk/hildon-thumbnail/config.h.in
===================================================================
--- projects/haf/trunk/hildon-thumbnail/config.h.in	2009-05-11 14:59:59 UTC (rev 18316)
+++ projects/haf/trunk/hildon-thumbnail/config.h.in	2009-05-11 16:04:00 UTC (rev 18317)
@@ -45,10 +45,6 @@
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
-#undef LT_OBJDIR
-
 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
 #undef NO_MINUS_C_MINUS_O
 

Modified: projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-daemon.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-daemon.c	2009-05-11 14:59:59 UTC (rev 18316)
+++ projects/haf/trunk/hildon-thumbnail/daemon/hildon-thumbnail-daemon.c	2009-05-11 16:04:00 UTC (rev 18317)
@@ -375,6 +375,21 @@
 	exit(1);
 }
 
+static void
+create_dummy_files (void)
+{
+	gchar *dir;
+
+	dir = g_build_filename (g_get_home_dir (), ".config", "hildon-thumbnailer", NULL);
+	g_mkdir_with_parents (dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
+	g_free (dir);
+
+	dir = g_build_filename (g_get_home_dir (), ".local", "share", "thumbnailers", NULL);
+	g_mkdir_with_parents (dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
+	g_free (dir);
+
+}
+
 int 
 main (int argc, char **argv) 
 {
@@ -395,6 +410,8 @@
 	if (!g_thread_supported ())
 		g_thread_init (NULL);
 
+	create_dummy_files ();
+
 	connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
 
 	if (!connection)


More information about the maemo-commits mailing list