Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/buddy.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buddy.py')
-rw-r--r--src/buddy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buddy.py b/src/buddy.py
index 2b83ee4..e85a925 100644
--- a/src/buddy.py
+++ b/src/buddy.py
@@ -974,9 +974,12 @@ class ShellOwner(GenericOwner):
key_hash = profile.privkey_hash
key = profile.pubkey
- nick = client.get_string("/desktop/sugar/user/nick")
color = client.get_string("/desktop/sugar/user/color")
tags = client.get_string("/desktop/sugar/user/tags")
+ nick = client.get_string("/desktop/sugar/user/nick")
+
+ if not isinstance(nick, unicode):
+ nick = unicode(nick, 'utf-8')
icon_file = os.path.join(env.get_profile_path(), "buddy-icon.jpg")
f = open(icon_file, "r")