summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2010-11-24 15:32:45 +0000
committerLinus Walleij <triad@df.lth.se>2010-11-24 15:32:45 +0000
commit0d9821a3e215ba53cb6e1f196ae9741fb8a3ffc9 (patch)
tree54a1a1c5419ac84dd34780fe46889971e366b0cf /examples
parent3d707580f0806d8473d1beb4c7897e9836422d68 (diff)
downloadlibmtp-0d9821a3e215ba53cb6e1f196ae9741fb8a3ffc9.tar.gz
Set the ID_MUSIC_PLAYER environment variable for udev
Diffstat (limited to 'examples')
-rw-r--r--examples/hotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hotplug.c b/examples/hotplug.c
index c2f36c4..94c0ced 100644
--- a/examples/hotplug.c
+++ b/examples/hotplug.c
@@ -54,7 +54,7 @@ int main (int argc, char **argv)
extern int optind;
extern char *optarg;
char *udev_action = NULL;
- char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", MODE=\"666\"";
+ char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", MODE=\"666\" ENV{ID_MEDIA_PLAYER}=\"1\"";
char *action; // To hold the action actually used.
uint16_t last_vendor = 0x0000U;