]> git.tdb.fi Git - pmount-gui.git/commitdiff
Support optical media devices
authorMikko Rasa <tdb@tdb.fi>
Sat, 19 Apr 2014 17:30:57 +0000 (20:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 19 Apr 2014 17:30:57 +0000 (20:30 +0300)
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;