Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/Shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/Shell.py')
-rwxr-xr-xshell/Shell.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/Shell.py b/shell/Shell.py
index d0fc59f..6b30bad 100755
--- a/shell/Shell.py
+++ b/shell/Shell.py
@@ -1,3 +1,5 @@
+import os
+
import dbus
import gtk
import wnck
@@ -7,6 +9,7 @@ from ConsoleLogger import ConsoleLogger
from ActivityRegistry import ActivityRegistry
from HomeWindow import HomeWindow
from sugar import keybindings
+from sugar import env
from sugar.activity import Activity
from PresenceWindow import PresenceWindow
from sugar.chat.ActivityChat import ActivityChat
@@ -50,7 +53,9 @@ class Shell:
self._owner = ShellOwner()
self._registry = ActivityRegistry()
-
+ self._registry.scan_directory(env.get_activities_dir())
+ self._registry.scan_directory(os.path.join(env.get_user_dir(), 'activities'))
+
self._home_window = HomeWindow(self)
keybindings.setup_global_keys(self._home_window, self)
self._home_window.show()