diff options
author | Ruben Rodriguez <ruben@activitycentral.com> | 2013-06-10 22:04:26 (GMT) |
---|---|---|
committer | Ruben Rodriguez <ruben@activitycentral.com> | 2013-06-10 22:04:26 (GMT) |
commit | b631180dd75a142f9c3f85bb8d9efe38ee797742 (patch) | |
tree | 228dbae0bcd45a11f383c7120bbf688cb0f7f43d /extensions/cpsection/aboutme/model.py | |
parent | 99d2a541c472911af5bb56035b56a7a197b8aaf5 (diff) |
Reverted Add support for selecting new XO icon skin
Diffstat (limited to 'extensions/cpsection/aboutme/model.py')
-rw-r--r-- | extensions/cpsection/aboutme/model.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/extensions/cpsection/aboutme/model.py b/extensions/cpsection/aboutme/model.py index 7395ae9..ad1de66 100644 --- a/extensions/cpsection/aboutme/model.py +++ b/extensions/cpsection/aboutme/model.py @@ -17,8 +17,6 @@ from gettext import gettext as _ from gi.repository import GConf -import shutil -import os _COLORS = { @@ -125,19 +123,3 @@ def set_color_xo(color): client = GConf.Client.get_default() client.set_string('/desktop/sugar/user/color', color) return 1 - - -def set_xo_icon(path, icon_name): - """ Replace computer-xo.svg icon """ - pt = os.path.join(os.path.expanduser('~'), '.current') - fd = open(pt, 'w') - fd.write(icon_name) - fd.close() - if os.path.exists('/usr/share/icons/sugar/scalable/device/'): - iconpath = '/usr/share/icons/sugar/scalable/device/computer-xo.svg' - shutil.copy(path, iconpath) - if os.path.exists('/opt/sweets/sugar-artwork/share/icons/sugar/scalable/device'): - iconpath = '/opt/sweets/sugar-artwork/share/icons/sugar/scalable/device/computer-xo.svg' - shutil.copy(path, iconpath) - else: - pass |