Add a way to get user dir

This commit is contained in:
Marco Pesenti Gritti
2006-05-21 17:49:27 -04:00
parent 41ec035dc7
commit 2174b6e0fd
4 changed files with 7 additions and 2 deletions
+2
View File
@@ -322,6 +322,8 @@ class BrowserShell(dbus.service.Object):
get_instance = staticmethod(get_instance)
def __init__(self):
geckoembed.set_profile_path(sugar.env.get_user_dir())
session_bus = dbus.SessionBus()
bus_name = dbus.service.BusName('com.redhat.Sugar.Browser', bus=session_bus)
object_path = '/com/redhat/Sugar/Browser'