From 03333fb47e0bc27da1f74313618d4acf8ee10847 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 19 Apr 2014 20:30:57 +0300 Subject: [PATCH] Support optical media devices --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index d1a2853..609db22 100644 --- a/main.c +++ b/main.c @@ -319,6 +319,9 @@ int can_mount(Property *props, char **allowed) if(is_in_array(allowed, devname)) return 1; + if(match_property_value(props, "ID_TYPE", "cd") && match_property_value(props, "ID_CDROM_MEDIA", "1")) + return 1; + if(!match_property_value(props, "DEVTYPE", "partition")) return 0; -- 2.45.2