From 40f977ffa365ff38148acd8fcf2a95b875b3c842 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Sun, 25 Jul 2010 18:41:49 +0200 Subject: Detect all devices as iPods whose ID_MODEL is prefixed with "iPod". --- thunar-volman/tvm-block-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thunar-volman/tvm-block-device.c b/thunar-volman/tvm-block-device.c index f29608c..b7b8402 100644 --- a/thunar-volman/tvm-block-device.c +++ b/thunar-volman/tvm-block-device.c @@ -162,8 +162,8 @@ tvm_block_device_autoipod (TvmContext *context, "ID_MEDIA_PLAYER"); /* check if we have an iPod */ - is_ipod = g_strcmp0 (g_udev_device_get_property (context->device, - "ID_MODEL"), "iPod") == 0; + is_ipod = g_str_has_prefix (g_udev_device_get_property (context->device, + "ID_MODEL"), "iPod"); if (is_ipod) { /* determine the mount point path */ -- cgit v1.2.1