[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
Tue Jul 20 16:18:01 CEST 2010


Updating branch refs/heads/jannis/port-to-udev
         to d35f28695a6965f8d518fdee9db779f4368ce480 (commit)
       from 396557ff7d62bd277d3537db4ad5011d7492feee (commit)

commit d35f28695a6965f8d518fdee9db779f4368ce480
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