Daniel,<div>Can you explain a little more in your patches, what is the problem you are trying to solve,</div><div>and/or why is the change proposed?</div><div>Thanks</div><div><br></div><div>Gonzalo<br><br><div class="gmail_quote">
On Fri, Dec 7, 2012 at 10:15 AM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com">dwnarvaez@gmail.com</a>><br>
<br>
Instead of hardcoding our prefix.<br>
---<br>
 src/jarabe/<a href="http://config.py.in" target="_blank">config.py.in</a>            |    1 -<br>
 src/jarabe/model/bundleregistry.py |    9 +++++++--<br>
 2 files changed, 7 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/jarabe/<a href="http://config.py.in" target="_blank">config.py.in</a> b/src/jarabe/<a href="http://config.py.in" target="_blank">config.py.in</a><br>
index bfcc2e5..f2a66a2 100644<br>
--- a/src/jarabe/<a href="http://config.py.in" target="_blank">config.py.in</a><br>
+++ b/src/jarabe/<a href="http://config.py.in" target="_blank">config.py.in</a><br>
@@ -19,6 +19,5 @@<br>
 data_path = '@prefix@/share/sugar/data'<br>
 locale_path = '@prefix@/share/locale'<br>
 ext_path = '@prefix@/share/sugar/extensions'<br>
-activities_path = "@prefix@/share/sugar/activities"<br>
 version = '@SUCROSE_VERSION@'<br>
<br>
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py<br>
index e441122..8a1fa37 100644<br>
--- a/src/jarabe/model/bundleregistry.py<br>
+++ b/src/jarabe/model/bundleregistry.py<br>
@@ -20,6 +20,7 @@ import logging<br>
<br>
 from gi.repository import GConf<br>
 from gi.repository import GObject<br>
+from gi.repository import GLib<br>
 from gi.repository import Gio<br>
 import simplejson<br>
<br>
@@ -60,8 +61,12 @@ class BundleRegistry(GObject.GObject):<br>
         # hold a reference to the monitors so they don't get disposed<br>
         self._gio_monitors = []<br>
<br>
-        user_path = env.get_user_activities_path()<br>
-        for activity_dir in [user_path, config.activities_path]:<br>
+        dirs = [env.get_user_activities_path()]<br>
+<br>
+        for data_dir in GLib.get_system_data_dirs():<br>
+            dirs.append(os.path.join(data_dir, "sugar", "activities"))<br>
+<br>
+        for activity_dir in dirs:<br>
             self._scan_directory(activity_dir)<br>
             directory = Gio.File.new_for_path(activity_dir)<br>
             monitor = directory.monitor_directory( \<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</font></span></blockquote></div><br></div>