Skip to content

Instantly share code, notes, and snippets.

@msnoigrs
Created October 10, 2011 11:06
Show Gist options
  • Save msnoigrs/1275061 to your computer and use it in GitHub Desktop.
Save msnoigrs/1275061 to your computer and use it in GitHub Desktop.
udisks-glue configuration
#
# Filters
#
filter disks {
optical = false
partition_table = false
usage = filesystem
}
filter burnable {
# optical = true
removable = true
optical_disc_closed = false
}
filter optical {
removable = true
# optical = true
}
#
# The default entry (only used if no filters match)
#
default {
# post_insertion_command = "insertion-notify %device_file"
post_insertion_command = "gntp-send -u -a udisks-glue udisks-glue %device_fileを検出しましたが何も処理をしていません。"
}
#
# Additional entries
#
match disks {
automount = true
automount_options = { sync, noatime }
# post_mount_command = "mount-notify mounted %device_file %mount_point"
post_mount_command = "gntp-send -u -a udisks-glue マウント %device_fileを%mount_pointにマウントしました。"
# post_unmount_command = "mount-notify unmounted %device_file %mount_point"
post_unmount_command = "gntp-send -u -a udisks-glue アンマウント %device_fileを%mount_pointからアンマウントしました。"
}
match burnable {
# post_insertion_command = "k3b %device_file"
post_insertion_command = "brasero --device %device_file"
# post_mount_command = "mount-notify mounted %device_file %mount_point"
post_mount_command = "gntp-send -u -a udisks-glue マウント %device_fileを%mount_pointにマウントしました。"
post_insertion_command = "udisks --mount %device_file --mount-options ro"
}
match optical {
automount = true
automount_options = ro
# post_mount_command = "mount-notify mounted %device_file %mount_point"
post_mount_command = "gntp-send -u -a udisks-glue マウント %device_fileを%mount_pointにマウントしました。"
post_insertion_command = "udisks --mount %device_file --mount-options ro"
post_unmount_command = "gntp-send -u -a udisks-glue アンマウント %device_fileを%mount_pointからアンマウントしました。"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment