honor udisks presentation hide flag

Reviewers: raster, seekamp

Reviewed By: zmike

CC: cedric

Differential Revision: https://phab.enlightenment.org/D505
This commit is contained in:
Chris Seekamp 2014-02-06 13:17:18 -05:00 committed by Mike Blumenkrantz
parent a93490e567
commit 7fd16ce26d
1 changed files with 4 additions and 0 deletions

View File

@ -414,6 +414,10 @@ _e_fm_main_udisks_cb_vol_prop(E_Volume *v,
if (e_ukit_property_bool_get(ret, "DeviceIsSystemInternal", &err)) goto error;
EINA_SAFETY_ON_TRUE_GOTO(err, error);
/* skip partitions with presentation hide set */
if (e_ukit_property_bool_get(ret, "DevicePresentationHide", &err)) goto error;
EINA_SAFETY_ON_TRUE_GOTO(err, error);
/* skip volumes with volume.ignore set */
if (e_ukit_property_bool_get(ret, "DeviceIsMediaChangeDetectionInhibited", &err)) goto error;
EINA_SAFETY_ON_TRUE_GOTO(err, error);