Skip to content
Snippets Groups Projects
Commit 900c9e68 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

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

parent 877f0d21
No related branches found
No related tags found
No related merge requests found
...@@ -493,9 +493,13 @@ thunar_application_uevent (GUdevClient *client, ...@@ -493,9 +493,13 @@ thunar_application_uevent (GUdevClient *client,
/* determine the sysfs path of the device */ /* determine the sysfs path of the device */
sysfs_path = g_udev_device_get_sysfs_path (device); sysfs_path = g_udev_device_get_sysfs_path (device);
/* distinguish between "add" and "remove" actions, ignore "change" and "move" */ /* distinguish between "add", "change" and "remove" actions, ignore "change" and "move" */
if (g_strcmp0 (action, "add") == 0 || g_strcmp0 (action, "change") == 0) 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 */ /* only insert the path if we don't have it already */
if (g_slist_find_custom (application->volman_udis, sysfs_path, if (g_slist_find_custom (application->volman_udis, sysfs_path,
(GCompareFunc) g_utf8_collate) == NULL) (GCompareFunc) g_utf8_collate) == NULL)
...@@ -559,6 +563,8 @@ thunar_application_volman_idle (gpointer user_data) ...@@ -559,6 +563,8 @@ thunar_application_volman_idle (gpointer user_data)
argv[2] = application->volman_udis->data; argv[2] = application->volman_udis->data;
argv[3] = NULL; argv[3] = NULL;
g_debug (" %s", g_strjoinv (" ", argv));
/* remove the first list item from the pending list */ /* remove the first list item from the pending list */
application->volman_udis = g_slist_delete_link (application->volman_udis, application->volman_udis); application->volman_udis = g_slist_delete_link (application->volman_udis, application->volman_udis);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment