# # sample config taken from the man page, which can be customized with # several switches from the udisks utility, possibly also from # others # #filter disks { # optical = false # usage = filesystem #} #match disks { # post_insertion_command = "udisks --mount %device_file --mount-options sync" # post_mount_command = "mount-notify mounted %device_file %mount_point" # post_unmount_command = "mount-notify unmounted %device_file %mount_point" #} # # Filters # filter disks { optical = false usage = filesystem } filter burnable { optical = true disc_closed = false } filter optical { optical = true } # # The default entry # default { # post_mount_command = "mount-notify mounted %device_file %mount_point" # post_unmount_command = "mount-notify unmounted %device_file %mount_point" # this will remove %device_file from /dev/disks/... AND %mount_point from /media post_removal_command ="udisks --unmount %device_file" } # # Additional entries # match disks { #post_insertion_command = "udisks --mount %device_file --mount-options sync,codepage=852,iocharset=utf8" post_insertion_command = "pmount -w --sync -u 0000 --fmask 0111 --dmask 0000 %device_file $(blkid -o value -s LABEL %device_file)" } #match burnable { # post_insertion_command = "k3b %device_file" # post_mount_command = "" #} match optical { #post_insertion_command = "udisks --mount %device_file --mount-options ro,gid=plugdev" post_insertion_command = "pmount -r --sync -u 0000 --fmask 0111 --dmask 0000 %device_file $(blkid -o value -s LABEL %device_file)" }