diff options
author | Simon Schampijer <simon@schampijer.de> | 2007-11-29 22:53:25 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2007-11-29 22:53:25 (GMT) |
commit | ca7036ac986b873bb27176edeb5c8d8ec44e98c9 (patch) | |
tree | 56e32ea55f783a1c0754e9af0e5b7e23ac0b2cb2 /webactivity.py | |
parent | 83a2bf1616c55d246685996b1cd80648d75ad7da (diff) |
Install cert8.db in the profile
Diffstat (limited to 'webactivity.py')
-rwxr-xr-x | webactivity.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py index 73accc5..52b9f6c 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 |