Re: [Sugar-devel] [ASLO] Media mount point

2012-05-30 Thread Sascha Silbe
Alan Jhonn Aguiar Schwyn alan...@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/


pgpX5Qp0JjOKC.pgp
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ASLO] Media mount point

2012-05-30 Thread Alan Jhonn Aguiar Schwyn

 Alan Jhonn Aguiar Schwyn alan...@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 
  ___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ASLO] Media mount point

2012-05-24 Thread Walter Bender
On Thu, May 24, 2012 at 3:47 PM, Alan Jhonn Aguiar Schwyn
alan...@hotmail.com wrote:

 Hi,

 I'm testing in my XO 1.0 the build 12.1 (Sugar 0.96.1)

 I connect a pendrive and it is mounted on: /run/media/olpc

 Why?

 It's a new mechanism for Fedora 17?

Yes.

 Regards!

 Alan

 ___
 ASLO mailing list
 a...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/aslo




-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ASLO] Media mount point

2012-05-24 Thread Alan Jhonn Aguiar Schwyn

  Hi,
 
  I'm testing in my XO 1.0 the build 12.1 (Sugar 0.96.1)
 
  I connect a pendrive and it is mounted on: /run/media/olpc
 
  Why?
 
  It's a new mechanism for Fedora 17?
 
 Yes.
 

And the back compatibility ??And all the activities/programs that search in 
/media ??   ___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ASLO] Media mount point

2012-05-24 Thread Walter Bender
On Thu, May 24, 2012 at 4:11 PM, Alan Jhonn Aguiar Schwyn
alan...@hotmail.com wrote:
  Hi,
 
  I'm testing in my XO 1.0 the build 12.1 (Sugar 0.96.1)
 
  I connect a pendrive and it is mounted on: /run/media/olpc
 
  Why?
 
  It's a new mechanism for Fedora 17?

 Yes.
 

 And the back compatibility ??
 And all the activities/programs that search in /media ??

That is a problem. But generally, in Sugar, activities would not be
accessing the removable file system directly, so we should have few
issues with activities.

-walter



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel