[Sugar-devel] [ASLO] Media mount point

Alan Jhonn Aguiar Schwyn alanjas at hotmail.com
Wed May 30 11:31:03 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/Yes.. it's better use that.. Thanks!Regards!Alan 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120530/f545b7aa/attachment.html>


More information about the Sugar-devel mailing list