From: Mikko Rasa Date: Sat, 19 Apr 2014 17:30:57 +0000 (+0300) Subject: Support optical media devices X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=03333fb47e0bc27da1f74313618d4acf8ee10847;p=pmount-gui.git Support optical media devices --- 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;