projects
/
pmount-gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15d082a
)
Support optical media devices
author
Mikko Rasa
<tdb@tdb.fi>
Sat, 19 Apr 2014 17:30:57 +0000
(20:30 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Sat, 19 Apr 2014 17:30:57 +0000
(20:30 +0300)
main.c
patch
|
blob
|
history
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;