diff options
author | Simon Schampijer <simon@schampijer.de> | 2007-11-29 22:53:25 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-11-29 23:12:22 (GMT) |
commit | a84c0c5f36beb7eb25893f3089c824b3973536e9 (patch) | |
tree | 2ee3ff5150e42b5cab13032c721274d637da545b | |
parent | 61810c19861ea7dfbd911b499eded4fc4d68cf75 (diff) |
Install cert8.db in the profile
-rwxr-xr-x | webactivity.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py index d5b71c3..eea98d2 100755 --- a/webactivity.py +++ b/webactivity.py @@ -23,6 +23,7 @@ import dbus import sha import base64 import time +import shutil from sugar.activity import activity from sugar import env @@ -35,8 +36,14 @@ from sugar import profile from sugar.graphics.alert import Alert from sugar.graphics.icon import Icon +_profile_path = os.path.join(env.get_profile_path(), 'gecko') +if not os.path.exists(_profile_path): + os.mkdir(_profile_path) + shutil.copy('cert8.db', _profile_path) + os.chmod(os.path.join(_profile_path, 'cert8.db'), 0600) + import hulahop -hulahop.startup(os.path.join(env.get_profile_path(), 'gecko')) +hulahop.startup(_profile_path) from browser import Browser from webtoolbar import WebToolbar |