summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2010-07-25 18:41:49 +0200
committerJannis Pohlmann <jannis@xfce.org>2010-07-25 19:42:30 +0200
commit40f977ffa365ff38148acd8fcf2a95b875b3c842 (patch)
tree774830b90b764a6d14b6913809383d46fd790b7c
parentf8b4f75b09138d8f112b3dee36f4a248897ea869 (diff)
downloadthunar-volman-jannis/port-to-udev.tar.gz
Detect all devices as iPods whose ID_MODEL is prefixed with "iPod".jannis/port-to-udev
-rw-r--r--thunar-volman/tvm-block-device.c4
1 files 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 */