[Sugar-devel] [ASLO] Media mount point
Sascha Silbe
silbe at activitycentral.com
Tue May 29 08:39:18 EDT 2012
Alan Jhonn Aguiar Schwyn <alanjas at hotmail.com> writes:
> And the "back compatibility" ??And all the activities/programs that
> search in /media ??
> _______________________________________________
They should use proper API (gio on recent distros, HAL on old OLPC OS
builds) rather than hardcoding paths. Check out the gio VolumeMonitor
API documentation [1] and see _find_media() [2] in Backup [3] for an
example (including fallback to HAL).
Sascha
[1] http://developer.gnome.org/gio/stable/GVolumeMonitor.html
[2] https://git.sugarlabs.org/backup/mainline/blobs/master/backup.py#line671
[3] http://activities.sugarlabs.org/en-US/sugar/addon/4326
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120529/bb6fa589/attachment.pgp>
More information about the Sugar-devel
mailing list