[Xfce4-commits] [apps/xfdashboard] 01/01: Add more debug message to _xfdashboard_application_database_load_applications_recursive

noreply at xfce.org noreply at xfce.org
Tue Nov 24 21:54:01 CET 2015


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 38f7c2cd03005b4f3c7bb7668e81a294606e7154
Author: Stephan Haller <nomad at froevel.de>
Date:   Tue Nov 24 21:52:39 2015 +0100

    Add more debug message to _xfdashboard_application_database_load_applications_recursive
    
    I hope these debug message could help solving problems when loading application desktop files failed, e.g. on FreeBSD 10.2 with maybe broken glib.
---
 xfdashboard/application-database.c |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/xfdashboard/application-database.c b/xfdashboard/application-database.c
index 4c1bf41..2e8caa4 100644
--- a/xfdashboard/application-database.c
+++ b/xfdashboard/application-database.c
@@ -31,6 +31,7 @@
 #include "application-database.h"
 #include "desktop-app-info.h"
 
+
 /* Define this class in GObject system */
 G_DEFINE_TYPE(XfdashboardApplicationDatabase,
 				xfdashboard_application_database,
@@ -740,6 +741,10 @@ static gboolean _xfdashboard_application_database_load_applications_recursive(Xf
 													g_file_info_get_name(info));
 			if(!childPath)
 			{
+				g_debug("Unable to build path to search for desktop files for path='%s' and file='%s'",
+						path,
+						g_file_info_get_name(info));
+
 				/* Set error */
 				g_set_error(outError,
 								G_IO_ERROR,
@@ -765,6 +770,11 @@ static gboolean _xfdashboard_application_database_load_applications_recursive(Xf
 																						&error);
 			if(!childSuccess)
 			{
+				g_debug("Unable to iterate desktop files at %s%s%s",
+						path,
+						G_DIR_SEPARATOR_S,
+						g_file_info_get_name(info));
+
 				/* Propagate error */
 				g_propagate_error(outError, error);
 
@@ -871,6 +881,12 @@ static gboolean _xfdashboard_application_database_load_applications_recursive(Xf
 
 	if(error)
 	{
+		g_debug("Failed to iterate path '%s' with info=%s@%p and error=@%p",
+				path,
+				info ? G_OBJECT_TYPE_NAME(info) : "<nil>",
+				info,
+				error);
+
 		/* Propagate error */
 		g_propagate_error(outError, error);
 
@@ -888,6 +904,9 @@ static gboolean _xfdashboard_application_database_load_applications_recursive(Xf
 	monitorData=_xfdashboard_application_database_monitor_data_new(inCurrentPath);
 	if(!monitorData)
 	{
+		g_debug("Failed to create data object for file monitor for path '%s'",
+				path);
+
 		/* Set error */
 		g_set_error(outError,
 						G_IO_ERROR,
@@ -906,6 +925,9 @@ static gboolean _xfdashboard_application_database_load_applications_recursive(Xf
 	monitorData->monitor=g_file_monitor(inCurrentPath, G_FILE_MONITOR_NONE, NULL, &error);
 	if(!monitorData->monitor)
 	{
+		g_debug("Failed to initialize file monitor for path '%s'",
+				path);
+
 		/* Propagate error */
 		g_propagate_error(outError, error);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list