I am completely frustrated with this, so i'd like some help.
The whole point is to make a udev rule to mount and unmount my ipod touch whenever i connect it, using gvfs-mount command, in order to be able to browse my device with rhythmbox.
so this is my udev rule file named 91-ipod.rules
i got it from arch wiki and tweaked it respectively
Code:
SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[13]/*", ENV{INTERFACE}=="255/*", ENV{dir_name}="ipod"
SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[024]/*", ENV{INTERFACE}=="255/*", ENV{dir_name}="iphone"
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[13]", ENV{dir_name}="ipod",
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[024]", ENV{dir_name}="iphone"
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129a", ENV{dir_name}="ipad"
SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129f", ENV{dir_name}="ipad2"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", SYMLINK+="ipod", RUN+="/usr/bin/gvfs-mount afc://%s{serial}"
ACTION=="remove", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", RUN+="/usr/bin/gvfs-mount -u '%s{serial}'"
The problem is that the connection command doesn't execute...
The action line itself must be correct because symlink is being created in /dev
i've run udevadm test command to test the "add" action, and the run command is reported correctly.
But when i copy and run the reported run command, everything just works fine....
Has anybody any idea what should i do on this occassion?