[Xfce4-commits] <thunar:jannis/port-to-udev> Don't react to udev "change" events for now. They are a little weird.

Jannis Pohlmann noreply at xfce.org
Sun Jul 25 19:42:05 CEST 2010


Updating branch refs/heads/jannis/port-to-udev
         to 900c9e68d3b3325df6671df9858e70775fa62d0a (commit)
       from 877f0d2125336f041c6d618ae00a8974ff08baab (commit)

commit 900c9e68d3b3325df6671df9858e70775fa62d0a
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue Jul 20 16:15:48 2010 +0200

    Don't react to udev "change" events for now. They are a little weird.

 thunar/thunar-application.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c
index 32b6a83..c885af6 100644
--- a/thunar/thunar-application.c
+++ b/thunar/thunar-application.c
@@ -493,9 +493,13 @@ thunar_application_uevent (GUdevClient       *client,
   /* determine the sysfs path of the device */
   sysfs_path = g_udev_device_get_sysfs_path (device);
 
-  /* distinguish between "add" and "remove" actions, ignore "change" and "move" */
-  if (g_strcmp0 (action, "add") == 0 || g_strcmp0 (action, "change") == 0)
+  /* distinguish between "add", "change" and "remove" actions, ignore "change" and "move" */
+  if (g_strcmp0 (action, "add") == 0) /* || g_strcmp0 (action, "change") == 0) */
     {
+#if 0
+      g_debug ("path = %s, action = %s", sysfs_path, action);
+#endif
+
       /* only insert the path if we don't have it already */
       if (g_slist_find_custom (application->volman_udis, sysfs_path, 
                                (GCompareFunc) g_utf8_collate) == NULL)
@@ -559,6 +563,8 @@ thunar_application_volman_idle (gpointer user_data)
           argv[2] = application->volman_udis->data;
           argv[3] = NULL;
 
+          g_debug ("  %s", g_strjoinv (" ", argv));
+
           /* remove the first list item from the pending list */
           application->volman_udis = g_slist_delete_link (application->volman_udis, application->volman_udis);
 



More information about the Xfce4-commits mailing list