]> git.tdb.fi Git - pmount-gui.git/blobdiff - main.c
Support optical media devices
[pmount-gui.git] / main.c
diff --git a/main.c b/main.c
index d1a2853c48dcb4d512cd78623893e3e449c06dd7..609db229f90787cd076fa1d245b6c6d864ceb99b 100644 (file)
--- 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;